O'Reilly logo

Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours by Jennifer Kyrnin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 22. Controlling the Browser History with the History API

What You’ll Learn in This Hour:

• How to control the browser history

• How to add pages to the history to add forward and back navigation in dynamic sites

• Methods to navigate through the history

• How to use the History API to add and delete pages from the history

Anyone who has browsed the web is familiar with browser history, the sequence of pages that the user has visited, and everyone uses the back button (probably the most-used button on a web browser) to skip back to the previous page(s) in that history.

In the past, a web developer could use JavaScript to navigate the user through the history, but could not change the pages that were listed in the browser history (or the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required