Methods and Properties of the History Object : History « Window Browser « JavaScript DHTML






Methods and Properties of the History Object


  Type         Item             Description
  Method       back()           Loads the last URL in the history list.
               forward()        Loads the next URL in the history list, 
                                assuming you have gone back at some point.
               go()             Loads a URL from the history list by using the offset passed.


  Property
               current          Refers to the current URL in the history list. 
               length           Returns the number of entries in the history list.
               next             Refers to the next URL in the history list. 
               previous         Refers to the previous URL in the history list. 

           
       








Related examples in the same category

1.History 'back()' Example
2.History 'forward()' Example
3.A Browser History Count
4.Use history back button
5.Go Back to previous Page
6.Go Back to some step
7.Go Back to previous Page using number