Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Nota: A partir do Gecko 6.0, document.height
não é mais suportado. Em seu lugar use document.body.clientHeight
. Veja element.clientHeight
.
Sumário
Retorna a altura do objeto document
. Em muitos casos, isto é igual à do elemento <body>
do documento atual.
Sintaxe
height_value = document.height
Exemplo
// alert document height
alert(document.height);
Alternativas
document.body.clientHeight document.documentElement.clientHeight document.documentElement.scrollHeight
Especificação
HTML5