aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/window/document/index.html
blob: 296c81af504a93b9d65df092a82eae9ef015989b (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: 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>