Javascript Reference
Categories: document

javascript document close( )

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

Closes the document writing stream to a window or frame. If a script uses document.write( ) or document.writeln( ) to generate all-new content for a window or frame, you must append a document.close( ) method to make sure the entire content is written to the document. Omitting this method may cause some content not to be written. This method also prepares the window or frame for a brand new set of content with the next document writing method. Do not, however, use document.close( ) if you use the document writing methods to dynamically write content to a page while loading from the server.

 
Parameters

None.

 
Returned Value

None.

Under moderation.
ascendka02vj - 2016-05-26

Powered by Linode.