Name

HTMLDocument.close( ) — close an open document and display it

Availability

DOM Level 1 HTML

Synopsis

void close(  );

Description

This method closes a document stream that was opened with the open( ) method and forces any buffered output to be displayed. See the Document.close( ) entry in the client-side reference section for full details.

See Also

HTMLDocument.open( ); Document.close( ) in the client-side reference section

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.