Javascript Reference
Categories: cssRules

javascript cssRules length

@March 15, 2008, 1:22 a.m.
lengthFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2  

Read-only  

Returns the number of elements in the collection, including @ rules.

 
Example
 
var howMany = document.styleSheets[1].cssRules.length;
 
Value

Integer.


Powered by Linode.