The window.history object is used to go back or to the next page of the web browser. It has the browser's history and comes with the following two methods −

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements