Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

History forward() method

History forward() method

History Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference History object