Name

classes[ ] — NN 4 IE n/a DOM n/a

Synopsis

Used with the JavaScript syntax of style sheets, the classes[] collection is part of a reference to a single class and the style property assigned to it. For a list of properties, see the tags object listing in this chapter.

Syntax

[document.]classes.className.stylePropertyName

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.