aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/window/document/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/web/api/window/document/index.html')
-rw-r--r--files/pl/web/api/window/document/index.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/files/pl/web/api/window/document/index.html b/files/pl/web/api/window/document/index.html
new file mode 100644
index 0000000000..296c81af50
--- /dev/null
+++ b/files/pl/web/api/window/document/index.html
@@ -0,0 +1,40 @@
+---
+title: window.document
+slug: Web/API/Window/document
+tags:
+ - DOM
+ - DOM_0
+ - Dokumentacja_Gecko_DOM
+ - Gecko
+ - Wszystkie_kategorie
+translation_of: Web/API/Window/document
+---
+<p>{{ ApiRef() }}</p>
+<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
+<p>Zwraca referencję do dokumentu zawartego w oknie.</p>
+<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
+<pre class="eval"><i>doc</i> = window.document
+</pre>
+<h3 id="Parametry" name="Parametry">Parametry</h3>
+<ul>
+ <li><code>doc</code> jest referencją do obiektu <code><a href="pl/DOM/document">document</a></code>.</li>
+</ul>
+<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
+<pre>&lt;html&gt;
+&lt;head&gt;
+ &lt;title&gt;Witaj, Świecie!&lt;/title&gt;
+&lt;/head&gt;
+&lt;body&gt;
+
+&lt;script type="text/javascript"&gt;
+ var doc = window.document;
+ alert( doc.title); // wyświetli: Witaj, Świecie!
+&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;</pre>
+<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
+<p>{{ DOM0() }}</p>
+<div class="noinclude">
+  </div>
+<p>{{ languages( { "en": "en/DOM/window.document", "fr": "fr/DOM/window.document", "ja": "ja/DOM/window.document" } ) }}</p>