--- title: Document.height slug: Web/API/Document/height translation_of: Web/API/Document/height ---
Nota: A partir do {{Gecko("6.0")}}, document.height
não é mais suportado. Em seu lugar use document.body.clientHeight
. Veja {{domxref("element.clientHeight")}}.
Retorna a altura do objeto {{domxref("document")}}. Em muitos casos, isto é igual à do elemento {{HTMLElement("body")}} do documento atual.
height_value = document.height
// alert document height alert(document.height);
document.body.clientHeight document.documentElement.clientHeight document.documentElement.scrollHeight
HTML5