page | NN 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 | |||
|
|||
Object-Specific Methods | |||
None. |
|||
Object-Specific Event Handler Properties | |||
None. |
pseudoClass | NN 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. |
selectorText | NN 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. |
style | NN 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. |