classList
all
alt
ch
dir
id
min
rel
top
url
URL
urn
TOC
Collapse the table of content
Expand the table of content

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

See also

HTMLElement

 

 

Show:
© 2016 Microsoft