How to feel iframe dynamically
I need to create <iframe> in document and fill it some data.
I try to do it using folowing code:
Code:
ifrCont = document.createElement("IFRAME");
ifrCont.src = "";
ifrCont.height = "100px";
ifrCont.width = "100%";
ifrCont.scrolling="auto";
contBody = document.createElement("BODY");
ifrCont.appendChild(contBody);
editedContent.appendChild(ifrCont);
But in line:
Code:
ifrCont.appendChild(contBody);
IE says that "object isn't suport this argument or method"
How I can feel iframe dynamically?
Any suggestions would be welcome!
TIA
Re: How to feel iframe dynamically
I find ONE way to solve my problem:
document.frames[0].document.open();
document.frames[0].document.write(root.innerHTML);
document.frames[0].document.close();
May be it will be helpful to someone