Join Bill Weinman for an in-depth discussion in this video Detecting HTML5 History API support, part of HTML5: Managing Browser History.
- View Offline
So it calls init, and then init calls this isSupportedBrowserHistory and has…historySupported variable that gets set, and so that variable is declared at…the top of the file, so that's a global variable. And then it calls this…function isSupportedBrowserHistory and that checks for window.history and history.pushState.…If both objects exist then history is considered to be supported, and we test if…
- Manipulating browser history: an overview
- Detecting History API support
- Pushing a new URL onto the stack
- Handling back and forward buttons with the popstate event
- Updating the stack with replaceState()