History API - Part 2 (The Good Stuff)

This follows on the first video about the History API which just listed the basic properties and methods available through the history and location objects. This video discusses the use of the popstate and hashchange events, the pushState and replaceState methods, and how to combine those with the history.state property and click listeners on your anchors or buttons so that you can create websites or single page applications where you dictate and track the user's progress through your website. History API Part 1 video -    • History API - Part 1   Code GIST: https://gist.github.com/prof3ssorSt3v...