Join Bill Weinman for an in-depth discussion in this video Pushing a new URL onto the stack, part of HTML5: Managing Browser History.
The first thing we want to do with the HTML5 session history API is to push a…new value onto the history stack.…So what I have here is a working copy of 02-pushstate-start.html.…I made a working copy of that, and I called it 02-pushstate-working.html.…I am actually editing directly on the server.…There is a feature here in Notepad++ that allows me to do that over SSH.…I know on the Mac you can do the same thing with BBEdit, and I believe you can…also do it with BBEdit's free version, which is called TextWrangler. And in any…event, this is the file and I am editing it directly on the server.…
- 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()