Document: close() Methode
Die Document.close()
Methode beendet das Schreiben in ein
Dokument, das mit Document.open()
geöffnet wurde.
Syntax
js
close()
Parameter
Keine.
Rückgabewert
Keiner (undefined
).
Beispiele
js
// Open a document to write to it
document.open();
// Write the content of the document
document.write("<p>The one and only content.</p>");
// Close the document
document.close();
Spezifikationen
Specification |
---|
HTML # dom-document-close-dev |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
close |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.