![]() |
VOOZH | about |
The DOM scrollHeight property is used to return the height of an element. This property includes padding and also content that is not visible on the screen due to overflow but does not include a border, scrollbar, or margin. It is a read-only property.
Syntax:
element.scrollHeight
Return Value: It returns the height of the content of the element in pixels.
Example: In this example, we will use DOM scrollHeight property.
Output:
Supported Browsers: The browser supported by the scrollHeight property are listed below: