This page was translated from English by the community.Learn more and join the MDN Web Docs community.
Document.close()
Методdocument.close() завершает запись в документ, открытый с помощьюdocument.open().
In this article
Синтаксис
document.close();
Пример
// открытие документа для записи в него.// запись содержимого документа.// закрытие документа.document.open();document.write("<p>The one and only content.</p>");document.close();Спецификации
| Specification |
|---|
| HTML> # dom-document-close-dev> |