What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-method
DocumentWriteMethod  
The document.write method

Arguments

Usage

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(document.write) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Comment by jo...@jorgechamorro.com, May 17, 2008

Beware: when used before the document ends loading (before the onLoad event) this method adds content to the document, but, after the onload event, document.write() replaces the document erasing all but the newly added content, header scripts included !


Sign in to add a comment