aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/document/close/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/api/document/close/index.html')
-rw-r--r--files/pl/web/api/document/close/index.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/files/pl/web/api/document/close/index.html b/files/pl/web/api/document/close/index.html
new file mode 100644
index 0000000000..b325beb8cc
--- /dev/null
+++ b/files/pl/web/api/document/close/index.html
@@ -0,0 +1,26 @@
+---
+title: document.close
+slug: Web/API/Document/close
+tags:
+ - DOM
+ - Wszystkie_kategorie
+translation_of: Web/API/Document/close
+---
+<div>
+ {{APIRef}}</div>
+<div>
+  </div>
+<p><span style="font-size: 1.71428571428571rem; letter-spacing: -0.5px; line-height: 24px;">Podsumowanie</span></p>
+<p>Metoda <code>document.close()</code> kończy zapis do otwartego dokumentu.</p>
+<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
+<pre>document.close()
+</pre>
+<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
+<pre>// otwieramy dokument do zapisu
+// i kończymy zamknięciem poprzez close()
+document.open();
+document.write("&lt;P&gt;The only content&lt;/P&gt;.");
+document.close();
+</pre>
+<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
+<p><a class="external" href="http://www.w3.org/TR/2000/WD-DOM-Level-2-HTML-20001113/html.html#ID-98948567">close</a></p>