document.height Redirect 1

There were scripting errors on this page. While those are being addressed by site editors, you can view partial content below.

{{ APIRef }} {{ Obsolete_header }}

Note: Starting in {{ Gecko }}, document.height is no longer supported. Instead use document.body.clientHeight. See .

Summary

Returns the height of the element of the current document.

Syntax

height_value = document.height

Example

// alert document height
alert(document.height);

Alternatives

document.body.clientHeight
document.documentElement.clientHeight

Specification

HTML5

See also

Document Tags and Contributors

Last updated by: Sheppy,