Availability: |
| |||
JavaScript syntax: | IE | mySelectorArray = myStyleSheet.rules | ||
Object properties: | length | |||
Object methods: | item() |
This is sometimes referred to as a rules object which is not strictly true. It is often so named because it is referenced by the rules property of a stylesheet.
DOM level 2 describes this object as a CSSRuleList object. It implies it is a sub-class of the Collection object and therefore it supports the item() method.
Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
---|---|---|---|---|---|---|---|---|---|---|---|
length | ![]() | 3.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
Prev | Home | Next |
Selection statement | Up | SelectorArray.length |
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. |