pages

HTML (DHTML)

pages Collection

Internet Development Index

Retrieves a collection of page objects, which represent @page rules in a styleSheet.

Syntax

[ oColl = ] styleSheet.pages
[ oObject = ] styleSheet.pages(iIndex)

Possible Values

oCollArray of page objects.
oObjectReference to an individual item in the array of elements contained by the object.
iIndexRequired. Integer that specifies the zero-based index of the item to be returned.

Members Table

The following table lists the members exposed by the pages object. Click a tab on the left to choose the type of member you want to view.

Attributes/Properties

PropertyDescription
length Retrieves the number of objects in a collection.

Methods

MethodDescription
item Retrieves an object from the pages collection.

Objects

ObjectDescription
page Represents an @page rule within a styleSheet.

Remarks

Although this collection is represented in the Cascading Style Sheets (CSS) object model in Microsoft® Internet Explorer 5.5 and later, @page rules are not represented in the default print template for Internet Explorer. The rules can be used by print templates developed for applications that host MSHTML.

Standards Information

There is no public standard that applies to this collection.

Applies To

styleSheet

See Also

Print Templates