“Alterar elemento no iframe” Respostas de código

Alterar elemento no 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;
Poised Penguin

Alterar iframe src

Do not use Inquisitive Iguana's answer! Notice the spelling of facebook in https://facobook.com. Visiting the webpage downloads malware onto your system

Message from my antivirus on my mac: "We've blocked the threat URL:Mal on http://dt.gnpe.com/ptmd from being downloaded."
Misty Macaw

Respostas semelhantes a “Alterar elemento no iframe”

Perguntas semelhantes a “Alterar elemento no iframe”

Mais respostas relacionadas para “Alterar elemento no iframe” em CSS

Procure respostas de código populares por idioma

Procurar outros idiomas de código