Visit Mozilla.org

DOM:document.close

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

The document.close() method finishes writing to a document, opened with document.open().

[edit] Syntax

document.close();

[edit] Example

// open a document to write to it.
// write the content of the document.
// close the document.
document.open();
document.write("<p>The one and only content.</p>");
document.close();

[edit] Specification

DOM Level 2 HTML: close() Method