JavaScript Window history.forward()
JavaScript Window history.forward()
The history.forward() method is used for loading the next URL i.e, the page in the history list. It only works if the next page exists. It is the same as history.go(1) or by clicking the Forward button on your browser.
Syntax:-
Its syntax is:- history.forward()