classNameclassName*
*



Contents  *



Index  *Topic Contents
*Previous Topic: classid
*Next Topic: clear

className

Description

Specifies the class of the given element. The class is typically used to associate a particular style rule in a style sheet with the element.

Syntax

object.className[ = className]

Settings

This read-write property takes any valid string. By default, the property is equal to the string assigned to the CLASS= attribute of the given element, or is an empty string if the attribute is not explicitly assigned.

Applies To

A, ACRONYM, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, I, IFRAME, IMG, INPUT, INS, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.