Javascript Reference
Categories: document

javascript document clear( )

@March 15, 2008, 1:22 a.m.
clear( ) Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a

Removes the current document from the window or frame, usually in preparation to open a new stream for writing new content. The document.write( ) and document.writeln( ) methods automatically invoke this method. Many bugs with the document.clear( ) method plagued earlier browser versions. Even today, it is best to let the document writing methods handle the job for you. The W3C DOM explicitly omits this method.

 
Parameters

None.

 
Returned Value

None.


Powered by Linode.