pageNN n/a IE 5.5(Win) DOM 2  

  

The page object is a special type of style rule created via an @page CSS rule. In the W3C DOM, this object (known as the CSSPageRule object) inherits properties of the CSSRule object. But as of IE 6 for Windows, the page object does not adhere to this inheritance structure. This object lays the foundation for a more fully implemented notion of page boxes expected in future browser versions.

 
HTML Equivalent
 
<style type="text/css">
@page {specifications}
</style.
 
Object Model Reference
 
[window.]document.styleSheets.pages[i]
 
Object-Specific Properties
 
pseudoClassselectorTextstyle
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

None.

pseudoClassNN n/a IE 5.5(Win) DOM n/a  

Read-only  

Returns the name of the pseudo-class associated with the @page rule (if any).

 
Example
 
var pClass = document.styleSheets[2].pages[0].pseudoClass;
 
Value

String pseudo-class names (including leading colon): :first | :left | :right.

 
Default

None.

selectorTextNN n/a IE 5.5(Win) DOM n/a  

Read/Write  

Provides the selector of the @page rule (if any).

 
Example
 
document.styleSheets[2].pages[0].selectorText = ":right";
 
Value

String.

 
Default

None.

styleNN n/a IE n/a DOM 2  

Read-only  

Returns the style object (of type CSSStyleDeclaration in the W3C DOM) reflecting the style attributes and properties of the @page rule.

 
Value

style object reference.

 
Default

None.