forward()
This method is used to move forward once within the history list. That is, it performs the same action as clicking on the browser's History button.
syntax:
forward()
This method is used with the following:
history
window