Our volunteers haven't translated this article into Français yet. Join us and help get the job done!
You can also read the article in English (US).

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

Étiquettes et contributeurs liés au document

 Contributeurs à cette page : teoli, kscarfone, Cobra, Sheppy, ziyunfei, Mgjbot, PGaries, Jabez, Nickolay, Dria, Callek, JesseW
 Dernière mise à jour par : teoli,