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