I\'m using pushState to create meaningful urls for ajax content on my site. I want to refresh the ajax content when the user hits the forward or back buttons. I\'m having pr
The object passed to the onpopstate function will have a state member, which will be null on the page load, so you could do something like this:
onpopstate
state
null
window.onpopstate = function(event) { if(event && event.state) { // ... } }