How do you access history in javascript?

Posted by Jennifer | Updated on

The window.history object contains the browser’s history. You can load previous and next URLs in the history using back() and next() methods.

Note: You can also access history without window prefix.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers