aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/api/document/height/index.html
blob: 1f777a7eb5215413e49e1a81ee974cbbe238a2fc (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
---
title: document.height
slug: Web/API/Document/height
tags:
  - DOM
  - DOM_0
  - Dokumentacja_Gecko_DOM
  - Gecko
  - Wszystkie_kategorie
translation_of: Web/API/Document/height
---
<p>{{ ApiRef() }}</p>
<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
<p><b>height</b> pobiera/ustawia wysokość dokumentu.</p>
<h3 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h3>
<pre class="eval"><i>wysokość</i> = document.height
document.height =<i>wysokość</i>
</pre>
<h3 id="Parametry" name="Parametry">Parametry</h3>
<ul>
 <li><code>wysokość</code> jest ciągiem reprezentującym wysokość dokumentu w pikselach, calach bądź poprzez <code>em</code>. Jesli nie zostanie określona jednostka (jak np. "px" w "200px"), domyślnie przyjmowane są piksele.</li>
</ul>
<h3 id="Przyk.C5.82ad" name="Przyk.C5.82ad">Przykład</h3>
<pre class="eval">// zmniejsz okno po załadowaniu
function onLoad() {
    document.height = "200";
    document.width = "200";
}
</pre>
<h3 id="Uwagi" name="Uwagi">Uwagi</h3>
<p>Zobacz także <a href="pl/DOM/document.width">DOM:document.width</a>.</p>
<h3 id="Specyfikacja" name="Specyfikacja">Specyfikacja</h3>
<p>{{ DOM0() }}</p>
<p>{{ languages( { "en": "en/DOM/document.height" } ) }}</p>