javascript styleSheet rules[ ]

rules[ ] NN n/a IE 4 DOM n/a  

 

Read-only  

Returns a collection of rule objects nested within the current styleSheet object. The W3C DOM equivalent (implemented in Netscape 6 and IE 5/Mac) is the cssRules property. See the cssRules object for a description of this collection object's property and methods; see the cssRule object for a description of the individual members of this collection.

 
Example
 
var allrules = document.styleSheets[0].rules;
 
Value

Reference to a rules collection object.

 
Default

Array of zero length.


1959,Nickname,Homepage or email,Comments here,Add comment