I have a page that changes hashes quite a bit, and I’m wanting to add the functionality that when the back/forward button is pressed (as in, the hash changes), a function runs. I’ve seen that you can do it with polling, but is that the only way?
Share
You have to use polling to get it to work cross browser.
Firefox 3.6, Safari 5.0.3 and Chrome 8 support
window.onhashchange.You can detect for the event via…
Does your browser support it?