Answers for "change javascript function in iframe"

CSS
2

change element in iframe

// so you got an iframe (id="myiframe"). In that page you have an element id="theprice" and you want to change its value
// from the parent page do this in your javascript:
var iframevar = document.getElementById('myiframe');
var elmnt = iframevar.contentWindow.document.getElementById("theprice");
elmnt.innerHTML = theNewPrice;
Posted by: Guest on July-10-2020

Code answers related to "change javascript function in iframe"

Browse Popular Code Answers by Language