How to insert html in iframe
Posted
by Massimo Ugues
on Stack Overflow
See other posts from Stack Overflow
or by Massimo Ugues
Published on 2010-05-06T12:24:47Z
Indexed on
2010/05/06
12:28 UTC
Read the original article
Hit count: 497
Hallo all: I need to insert a html string in a iframe as shown below:
....
var html = "<html><head><title>Titolo</title></head><body><p>body</p></body></html>"
jQuery('#popolaIframe').click(function() {
parent.$("#indexIframe")[0].documentElement.innerHTML = html;
});
Is there a way to achieve this? Kind regards Massimo
© Stack Overflow or respective owner