![]() |
VOOZH | about |
The DOM clientWidth Property is used to return the viewable width of a specific element including padding but excluding the measurement of margin, border, and scrollbar width. This property only returns the actual width of an element that is viewable or visible to the user. It is a read-only property.
Syntax:
element.clientWidth
Return Value: It returns a Numeric value that represents the viewable width of an element.
Example: In this example, we will use DOM clientWidth property
Output:
Supported Browsers: The browser supported by DOM clientWidth property are listed below: