Skip to content

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.

Where the book teaches it