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