RE: iframe ... does it have an innerHTML ?

Sam
Wed, 28 Jun 2006 14:05:29 -0000

Important to remember that using document.open/close/write from javascript
during non-loading period will cause the current document context to reset,
meaning you lose what was previously there.

-          var iFrame = document.createElement(''IFRAME'');
-          iFrame.src = "/"; //pretty sure you don''t need
this
-          iFrame.contentWindow.document.body.innerHTML =
"blarrrrrrr";
-          iFrame.contentWindow.document.body.innerHTML += "more
BLARRRRRRRRR";

resetting the context of the enclosing body?  This means reloading an iframe
will ...  fire a body onload event or what?

are you sure it doesn''t reset the context of the iframe alone? (hopeful
look)

<take a moment to ready what was actually written>

  .. so using innerHTML avoids the context reset altogether...

thanks

</>

Sam