i have a website that contain an iframe. www.vendeposto.com.br and i want to hide an element
Im trying to do this:
function myFunction() {
var iframe = document.getElementById("myFrame");
var elmnt = iframe.contentWindow.document.getElementsByTagName("col-sm-12 col-md-4 col-lg-3")[0];
elmnt.style.display = "none";
}
The index.html of the vendeposto.com.br site is this:
<!DOCTYPE html>
Postos de gasolina a venda
function myFunction5() {
var iframe = document.getElementById("myFrame");
var elmnt = iframe.contentWindow.document.getElementsByTagName("col-sm-12 col-md-4 col-lg-3")[0];
elmnt.style.display = "none";
}
myFunction5();
but thats now working, the element stills there. And id like to change the logo too, but i dont know how to do that inside an iframe.
Anybody can help me?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)