150
rated 0 times
[
156]
[
6]
/ answers: 1 / hits: 17832
/ 12 Years ago, wed, may 2, 2012, 12:00:00
My Google-fu pulls up nothing.
When you do this:
var stateObj = { state: some state };
history.pushState(stateObj, page 2, other.htm);
Is there an associated window callback?
I know that there's this:
window.onpopstate = function() {
}
Which works great for listening to when a user hits the back button. However, I want to listen to any time the URL changes at all, and I'm not sure how to do it.
Is there a global callback for anytime the URL changes?
More From » html