Document.close()
Метод document.close()
завершает запись в документ, открытый с помощью document.open().
Синтаксис
document.close();
Пример
// открытие документа для записи в него. // запись содержимого документа. // закрытие документа. document.open(); document.write("<p>The one and only content.</p>"); document.close();
Спецификации
Specification |
---|
HTML # dom-document-close-dev |
Совместимость с браузерами
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.