The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
classList property
Returns a DOMTokenList that represents the className attribute value expressed as a string.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
ptr = object.classList |
Property values
Type: DOMTokenList
Represents string that is the className attribute value
Standards information
- DOM4, Section 5.1
See also
Show:
