menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

The JavaSc...
source image

Dev

3w

read

356

img
dot

Image Credit: Dev

The JavaScript History API

  • The JavaScript History API is a part of the Web API that allows us to interact with the browser's session history.
  • Key features of the JavaScript History API include methods like history.back(), history.forward(), history.go(n), history.pushState(), and history.replaceState().
  • The history.back() method moves the browser to the previous page in the session history.
  • The history.forward() method moves the browser to the next page in the session history.
  • The history.go() method is used to navigate to a specific point in the browser stack.
  • The history.pushState() method is used to add a new entry in the current session's history stack.
  • The history.replaceState() method replaces the current entry in the current session's history stack with a new entry.

Read Full Article

like

21 Likes

For uninterrupted reading, download the app