height property (document)
Retrieves the height of the document's contents.
In Google Chrome and Safari, if the height of the document's contents is less then the height of the browser window's client area, then it returns the height of the client area.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the height of the document, in pixels.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the height property:
Did you find this example helpful?
User Contributed Comments