Click to See Complete Forum and Search --> : IFRAME innerHTML


SaiyanM
11-21-2002, 07:21 PM
How can I get the innerHTML of an Iframe whos id is "blah" to be "<html><head><blah>"?

I tried this, which didn't work

<body onload=Init()>
<script>
function Init(){
blah.document.designMode = 'On';
blah.document.body.innerText = '&lt\;html&gt\;&lt\;head&gt\;&lt\;blah&gt\;';
}
</script>
<IFRAME ID="blah" ></IFRAME>

SaiyanM
11-21-2002, 08:11 PM
I tried using the self.frames["iframename"] idea but it didn't work.

the line i used was

self.frames["previewArea"].innerHTML = 'asdasd';

-----------

it changes the value of the innerHTML but it doesn't show in the 'asdasd' in the IFRAME