Javascript Reference
Categories: styleSheet

javascript styleSheet rules[ ]

@Aug. 15, 2009, 12:27 p.m.
rules[ ] Firefox/Netscape/NN n/a IE 4 Chrome/Safari/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.


Powered by Linode.