Web API History Interfaces

  • History: It allows us to manipulate the browser session history.
  • PopStateEvent: It is an interface for pop state which is triggered when active history changes while the user navigates the session history.

Web API History

Web API History is the API that is used to access the browser history. It basically gives us access to the history of global objects. This API is useful when we are dealing with the session history of a web browser. It gives us some useful methods and properties to access and manage the history object of the browser.

Similar Reads

Concepts and Usage

Some of the basic usages of History API are:...

Web API History Interfaces

History: It allows us to manipulate the browser session history. PopStateEvent: It is an interface for pop state which is triggered when active history changes while the user navigates the session history....

Web API History Methods

back(): To move backward through history we can use the back method. It is the same as the back button in their browser button. forward(): To move forward through history we can use the forward method. It is the same as the forward button. go(): To load a specific page from session history. We can use relative position with the current page as a position argument in the go method to load the page....

Browser Support:

...

Contact Us