The History Object

browser history

Manipulate the browser’s history by using the History object available in JavaScript. You can move forward and backwards and check the number of the previously visited URLs.