aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/document/open/index.html
blob: 2a7b0347b71e5e2c6e879f16295752676b856b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: document.open
slug: Web/API/Document/open
tags:
  - DOM
  - Wszystkie_kategorie
translation_of: Web/API/Document/open
---
<p id="Summary">{{APIRef("DOM")}}</p>

<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>

<p>Metoda <b>document.open</b> otwiera strumień dokumentu do zapisu.</p>

<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>

<pre class="eval">document.open()
</pre>

<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>

<pre>//W tym przykładzie zawartość dokumentu jest
//usuwana przy reinicjalizacji poprzez open()

document.write("&lt;html&gt;&lt;p&gt;wyczyść to&lt;/p&gt;&lt;/html&gt;");
document.open();
//dokument jest pusty
</pre>

<h3 id="Uwagi" name="Uwagi">Uwagi</h3>

<p>Jeżeli dokument docelowy istnieje, metoda ta wyczyści go (zob. powyzszy przykład). <b>document.open</b> jest wywoływane również wtedy, gdy zostanie użyte <a href="pl/DOM/document.write">document.write</a> po załadowaniu dokumentu.</p>

<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-72161170">open </a></p>

<div class="noinclude"> </div>

<p>{{ languages( { "en": "en/DOM/document.open", "fr": "fr/DOM/document.open", "ja": "ja/DOM/document.open" } ) }}</p>