Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Document
  4. Document.close()

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

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

Совместимость с браузерами

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp