From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/document/close/index.html | 63 ++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 files/ru/web/api/document/close/index.html (limited to 'files/ru/web/api/document/close') diff --git a/files/ru/web/api/document/close/index.html b/files/ru/web/api/document/close/index.html new file mode 100644 index 0000000000..ba5d9ff72a --- /dev/null +++ b/files/ru/web/api/document/close/index.html @@ -0,0 +1,63 @@ +--- +title: Document.close() +slug: Web/API/Document/close +tags: + - API + - Document + - HTML DOM + - Справка + - метод +translation_of: Web/API/Document/close +--- +

{{APIRef("DOM")}}

+ +

Метод document.close() завершает запись в документ, открытый с помощью document.open().

+ +

Синтаксис

+ +
document.close();
+
+ +

Пример

+ +
// открытие документа для записи в него.
+// запись содержимого документа.
+// закрытие документа.
+document.open();
+document.write("<p>The one and only content.</p>");
+document.close();
+
+ +

Спецификации

+ + + + + + + + + + + + + + + + + + + + + +
СпецификацияСтатусКомментарий
{{SpecName("HTML WHATWG", "#dom-document-close", "document.close()")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("DOM2 HTML", "html.html#ID-98948567", "document.close()")}}{{Spec2("DOM2 HTML")}} 
+ +

Браузерная поддержка

+ + + +

{{Compat("api.Document.close")}}

+ +

 

-- cgit v1.2.3-54-g00ecf