0 votes
in JavaScript by
What is the use of history object?

1 Answer

0 votes
by

The history object of a browser can be used to switch to history pages such as back and forward from the current page or another page. There are three methods of history object.

  1. history.back() - It loads the previous page.
  2. history.forward() - It loads the next page.
  3. history.go(number) - The number may be positive for forward, negative for backward. It loads the given page number.

Related questions

0 votes
asked Dec 20, 2020 in SVN by SakshiSharma
0 votes
asked Feb 21 in NFL Trivia by Robindeniel
...