HTML DOM Element scrollHeight
HTML DOM Element scrollHeight Property
The scrollHeight property is a read-only property and it returns the height of an element including padding. However, it excludes borders, scrollbars, or margins and returns height in pixels.
Syntax:-
Its syntax is:- element.scrollHeight
Return:-
Its return is:- the height of the element in pixels