Using this method
is the same as clicking the browser's Forward button, i.e. it moves to the next URL in the history list of the current top-level window.
The following example creates a button on the page that acts the same
as the browser's Forward button.
<input type="button" value="Go back" onClick="window.forward()">