JavaScript Reference/Javascript Objects/history

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

"history" Example

   <source lang="javascript">
   

<html> <head> <script language="JavaScript"> function function1(){

   history.back(1);

} </script></head> <body> <input id="myButton"

      type="button" 
      onclick="function1();" 
      value="Go back 1 step in the history list">

</body> </html>


     </source>
   
  


"history" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |window | +----------------+--------------------------------------------------------------+

     </source>
   
  


"history" JavaScript Methods

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | JavaScript |back forward | | Methods |go | +----------------+--------------------------------------------------------------+

     </source>
   
  


"history" JavaScript Properties

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | JavaScript |length | +----------------+--------------------------------------------------------------+

     </source>
   
  


"history" Syntax and Note

   <source lang="javascript">

Note: Navigate through previously visited web pages.

Syntax:

window.history.memberName


     </source>