Click to See Complete Forum and Search --> : How to feel iframe dynamically


=vd=
August 6th, 2006, 08:16 AM
I need to create <iframe> in document and fill it some data.

I try to do it using folowing 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:
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

=vd=
August 6th, 2006, 12:25 PM
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