Web History API

Web History API provides methods to access the window.history object that contains the URLs of websites visited by the user.

Code :