Element Properties: clientHeight

By: Dusty Arlia
Published on Friday, August 23, 2013, 07:55 PM
Last Updated on Monday, July 06, 2015 at 10:53 AM
Total Updates: 3

The clientHeight property holds the value of the height of an HTML element in pixels. This measurement includes the content area and padding. It doesn't include the size of the scrollbar, the border, or margin. If the element is an inline element, then this value is 0.

Here is the syntax for accessing clientHeight's value:

var height_value = element.clientHeight;

Comments:

Ad:

Ad: