I\'m using the new HTML5 onpopstate event. Using Firefox 4 the window.onpopstate event is triggered on a page load whilst in Webkit this does not seem to be the case.
<
I don't know if is this what you are asking, but my solution for an ajax-only onpopstate event handler is to set up to true
a variable refreshed
on window.onload
and set it to false
on history.pushState
calls; then on the onpopstate
handler just do stuff if refreshed
is false
.
Looks silly, and it is, but I couldn't do any better.