Easy Tutorial
❮ Prop Style Verticalalign Dom Obj Submit ❯

History go() Method


Definition and Usage

The go() method loads a specific page from the history list.

The parameter can be a number, which is the relative position of the URL in the History's URL list. (-1 for the previous page, 1 for the next page). Or it can be a string, which must be a partial or complete URL, and the function will match the first URL that matches the string.

Syntax


Browser Support

All major browsers support the go() method.


Example

Click to go back two pages:

The output of the above example:


❮ Prop Style Verticalalign Dom Obj Submit ❯