Section 25.149. HTMLDocument.close( ): close an open document and display it


25.149. HTMLDocument.close( ): close an open document and display it

DOM Level 0

25.149.1. Synopsis

 void close( ); 

25.149.2. Description

This method closes a document stream that was opened with the open( ) method and forces any buffered output to be displayed. If you use the write( ) method to dynamically output a document, you must remember to call this method when you are done to ensure that all your document content is displayed. Once you have called close( ), you should not call write( ) again, as this implicitly calls open( ) to erase the current document and begin a new one.

25.149.3. See Also

HTMLDocument.open( ), HTMLDocument.write( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net