July 1998
Intermediate to advanced
1456 pages
65h 5m
English
className — NN n/a IE 4 DOM 1
Read/Write
An identifier generally used to associate an element with a style
sheet rule defined for a class selector. You can alter the class
association for an element by script. If the document includes an
alternate class selector and style rule, adjusting the
element’s className property can provide a
shortcut for adjusting many style properties at once.
document.all.elementID.className = "altHighlighted"Case-sensitive string. Multiple class names are space-delimited within the string.
None (or class set via the element’s CLASS
attribute).
Read now
Unlock full access