--- title: document.height slug: Web/API/Document/height tags: - DOM - DOM_0 - Dokumentacja_Gecko_DOM - Gecko - Wszystkie_kategorie translation_of: Web/API/Document/height ---
{{ ApiRef() }}
height pobiera/ustawia wysokość dokumentu.
wysokość = document.height document.height =wysokość
wysokość jest ciągiem reprezentującym wysokość dokumentu w pikselach, calach bądź poprzez em. Jesli nie zostanie określona jednostka (jak np. "px" w "200px"), domyślnie przyjmowane są piksele.// zmniejsz okno po załadowaniu
function onLoad() {
document.height = "200";
document.width = "200";
}
Zobacz także DOM:document.width.
{{ DOM0() }}
{{ languages( { "en": "en/DOM/document.height" } ) }}