Javascript Reference
Categories: styleSheet

javascript styleSheet pages[ ]

@March 15, 2008, 1:22 a.m.
pages[ ]Firefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

Read-only  

Returns a collection (array) of page objects (@page rules) nested within a styleSheet object. For Netscape 6, you must loop through all cssRule objects of a styleSheet object in search of those with type property values equal to 6 (the same as the cssRule object's PAGE_RULE constant). See the page object.

 
Example
 
var allPageRules = document.styleSheets[0].pages;
 
Value

Reference to a pages collection object.

 
Default

Array of zero length.


Powered by Linode.