javascript styleSheet pages[ ]

pages[ ]NN n/a IE 5.5(Win) 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.


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