The Web History API provides easy methods to access the windows.history object.
The window.history object contains the URLs (Web Sites) visited by the user.
The Web History API is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes |
The History back() Method
The back() method loads the previous URL in the windows.history list.
It is the same as clicking the “back arrow” in your browser. Continue reading Javascript Web History API