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