History.go() method loads a specific page from the
session history. You can use it to move forwards and backwards through the history
depending on the value of a parameter.
- The position in the history to which you want to move, relative to the current page.
A negative value moves backwards, a positive value moves forwards. So, for example,
history.go(2)moves forward two pages and
history.go(-2)moves back two pages. If no value is passed or if
deltaequals 0, it has the same result as calling
To move back one page (the equivalent of calling
To move forward a page, just like calling
To move forward two pages:
To move backwards by two pages:
And, finally either of the following statements will reload the current page:
|HTML Standard (HTML)|
BCD tables only load in the browser