JavaScript Reference/Javascript Methods/previousPage

Материал из Web эксперт
Перейти к: навигация, поиск

"previousPage()" Example

   <source lang="javascript">
   

<html> <head> <script language="javascript"> function goFirst(){

  document.all.myTable.dataPageSize = 2;
  myTable.firstPage(); 

} function goPrevious(){

  document.all.myTable.dataPageSize = 2;
  myTable.previousPage(); 

} function goNext(){

  document.all.myTable.dataPageSize = 2;
  myTable.nextPage(); 

} function goLast(){

  document.all.myTable.dataPageSize = 2;
  myTable.lastPage(); 

} </script> <body> <button onclick="goFirst();">First Page</button> <button onclick="goPrevious();">Previous Page</button> <button onclick="goNext();">Next Page</button> <button onclick="goLast();">Last Page</button> <button onclick="alert(document.all.myData.namedRecordset(""));">Named recordset</ button> <object classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83" id="myData">

   <param name="DataURL" value="myfile.csv">
   <param name="UseHeader" value="True">
   <param name="TextQualifier" value=""">

</object>

<thead> </thead> <tbody> </tbody>
First Last

</body> </html>



     </source>
   
  


"previousPage()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+

| Applied_To | | +----------------+--------------------------------------------------------------+ </source>

"previousPage()" Syntax, Parameters and Note

   <source lang="javascript">

Note: Displays the previous page of external data bounded to a table.

Syntax:

document.all.tableID.previousPage()


</source>