HTML DOM Element offsetHeight
HTML DOM Element offsetHeight Property
The offsetHeight property is a read-only property and it returns the viewable height of an element that includes padding, border, and scrollbar in pixels but it does not include the margin.
Its syntax is:- element.offsetHeight
Its return is:- viewable height including padding, border, and scrollbar in pixels