DJI AUTHORISED RETAIL STORE

Certified repairs centre

After sales Support

Autel EVO Nano Plus

Get It Now, Pay Later

Buy Now
Category:
Product Description
setproductURl(); setproductName();

function setproductURl(){ //finds the url of current page var Product_url = window.location.href; //finds all elements on form for the url const elements = document.querySelectorAll('[id*="et_pb_contact_inquiry_url_"]'); elements.forEach(element => { element.value = Product_url; }); }

function setproductName(){ //find the product name of current page var Product_title = document.querySelector(".et_pb_wc_title .et_pb_module_inner h1").innerText ; //finds all elements on form for the product const elements = document.querySelectorAll('[id*="et_pb_contact_inquiry_item_"]'); elements.forEach(element => { element.value = Product_title; }); }