Glossary: JavaScript in the Browser
classList
Also written: className
A property for changing an element's classes: add, remove, toggle and contains. className is the whole class attribute as one string.
Glossary: JavaScript in the Browser
Also written: className
A property for changing an element's classes: add, remove, toggle and contains. className is the whole class attribute as one string.