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.
Its syntax is:- element.scrollHeight
Its return is:- the height of the element in pixels