Retrieves the height of the object including padding, but not including margin, border, or scroll bar.
Syntax
HTML
N/A
Scripting
[ iHeight = ] object.clientHeight
Possible Values
iHeight
Integer that
receives the height of the object, in pixels.
The property is read-only.
The property has no default value.
Example
This example shows how the clientHeight property and the offsetHeight property measure document height differently. The height of the div is set to 100, and this is the value retrieved by the offsetHeight property, not the clientHeight property.
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
Standards Information
There is no public standard that applies to this property.