Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

className

Description

The className of Element for JS returns the value of element’s class content attribute. Can be set to change it.

Syntax

element.className [ = value ]

Examples

1 · get

2 · set

attachShadow

classList

closest

getAttribute

getAttributeNames

getAttributeNS

hasAttribute

hasAttributeNS

hasAttributes

id

innerHTML

insertAdjacentHTML

localName

matches

namespaceURI

outerHTML

prefix

removeAttribute

removeAttributeNS

setAttribute

setAttributeNS

shadowRoot

slot

tagName

toggleAttribute

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu