You are here: Reference > JavaScript > client-side > ActiveX > ADO > methods > firstPage (table)

firstPage method (table)

Browser support:
Displays the first page of records from the data set that the current table object is bound to.
The number of records in a page must be specified to use this method (see the dataPageSize property).
This method belongs to the Internet Explorer data binding techniques; other browsers don’t support any similar functionality.


object.firstPage ( );
You can find the related objects in the Supported by objects section below.

Return value:

This method has no return value.

Example HTML code 1:

This example illustrates the use of the firstPage method:
    <xml id="movies">
        <?xml version="1.0"?>
                <name>Clark Kent</name>
                <name>Lois Lane</name>
                <name>Fred Flintstone</name>
                <name>Barney Rubble</name>
    <table width="100%" cellpadding="0px" cellspacing="2px" border="1px" datasrc="#movies" datapagesize="1" id="myTable">
                <td><span datafld="name"></span></td>
                <td><span datafld="jobtitle"></span></td>
                <td><span datafld="born"></span></td>

    <input type="button" onclick="myTable.firstPage ()" value="|< First " />
    <input type="button" onclick="myTable.previousPage ()" value="< Previous " />
    <input type="button" onclick="myTable.nextPage ()" value=" Next >" />
    <input type="button" onclick="myTable.lastPage ()" value=" Last >|" />
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content