HTML5 gives you control over the browser’s history—where it’s been and where it is now. The History object lets you move forward and backward, from page to page in the browser, which means you can use the history object, for example, to go back three pages.
You can also store data in a browser’s history state object. That is, you can add data to the state object and then push that state object to store it with the current page. You can also pop the state object, recovering the data you stored, which allows you to pass data from page to page.
We’ll see how all this works in the current lesson. Let’s jump into browser history now.
In this lesson, we’ll develop an example named ...