TOC PREV NEXT INDEX

domref



cssRules


Returns all of the CSS rules in the stylesheet as an array.

Syntax

rules = stylesheet.cssRules
 

Parameters

rules is an array of individual cssRule objects.

Example

// get to the first rule
 
first_rule = document.styleSheets[0].cssRules[0];
 

Notes

See DOM cssRule Object.

Specification

cssRule


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX