JavaScript – history.back() Method
The history.back() method loads the previous page in the browser history list. The history.back() method only works if a previous page exists.
The history.back() method loads the previous page in the browser history list. The history.back() method only works if a previous page exists.
The history.forward() method loads the next page in the browser history list. The history.forward() method only works if a next page exists.
The history.go() method loads a specified page in the browser history list. The history.go() method only works if the specified page exists.
The history.length property returns the number of URLs in the history list of the current browser window.