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

Sam
Wed, 28 Jun 2006 14:33:49 -0000

Lets go to www.google.com <http://www.google.com/>

In the URL/address bar, clear any text there.
Type:    javascript:document.write(''omg where did google go''
);
Press enter.
No onload, but google is now gone!
----------------------------------------------------------

Thanks.  One last question to clean up...

oMyDiv = document.createElement(''div'');
document.body.appendChild(oMyDiv);
sMyText = ''Howdy!  This is western text!'';
oMyDiv.innerHTML = sMyText;
oMyText = document.createTextNode(sMyText);
oMyDiv.appendChild(oMyText);

Does one method of adding innerHTML have benefits / features that the other
does not?

Sam