Filling an IFRAME with dynamic content from JavaScript
Posted
by user256890
on Stack Overflow
See other posts from Stack Overflow
or by user256890
Published on 2010-04-19T08:03:24Z
Indexed on
2010/04/19
8:13 UTC
Read the original article
Hit count: 265
I have an IFRAME that should be filled with content from JavaScript. Had the content be on the server all I had to do is:
function onIFrameFill() {
myIframe.location.href = "HelloWorld.html";
}
But the content I have is a HTML page generated on the client and represented as a string (I have not much influence on it). How can I populate the content of the my iframe programatically?
© Stack Overflow or respective owner