History forward() method
History object
Definition and Usage
The forward() method loads the next URL in the history list.
Calling this method is equivalent to clicking the forward button or calling history.go(1).
Syntax
history.forward()
Browser support





All major browsers support the forward() method
Example
Example
Create a forward button on the page:
The example above produces the following output:
Try it »
History object