Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

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

Syntax

document.close();

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();

Specification

DOM Level 2 HTML: close() Method

文件標籤與貢獻者

 最近更新: teoli,