Reflects the class attribute as an ordered list of the whitespace separated class names and has convenience methods for add, remove, contains and more.
Property of dom/Elementdom/Element
SyntaxNote: This property is read-only.
var classList = element.classList;
Return Value
Returns an object of type
A DOMTokenList representing the class names of the element.
Related specificationsMicrosoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4