The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.


< dom‎ | Element
Jump to: navigation, search


This article is In Progress.

W3C Candidate Recommendation


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/Element


Note: 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.

Needs Examples: This section should include examples.

Related specifications

Specification Status Related Changes
WHATWG DOM Living Standard Section 9.1
DOM4 Working Draft Section 9.2

See also

Related pages (MSDN)


This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]