Availability: |
| ||||
JavaScript syntax: | N | myJSSClasses = myDocument.classes | |||
Object properties: | className |
This style sheet control mechanism is becoming deprecated as it is only supported on Netscape 4.0 and will not be ratified by a W3C standard. It is not recommended that you use these facilities in new projects.
This object is somewhat like an array in that it contains a collection of objects that can be accessed associatively by name. However, unlike an array, it does not respond to the length property request. Also unlike an array, you cannot access its members using index values.
The only meaningful property of this object is one of its array elements corresponding to a named class in the style sheet. That property is also associated with a named CLASS="..." attribute of an HTML tag in the document.
You cannot enumerate this object to inspect its properties.
Deprecated for any further use. This was available only in Netscape 4.0 and is completely removed from Netscape 6.0.
See also: | Document.classes[] |
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
className | 1.2 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
Prev | Home | Next |
JSS | Up | JSSClasses.className |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |