I have the following code
$(document).ready(function() {
if ("onhashchange" in window) {
alert("The browser supports the hashchange event!");
}
function test(){
alert("hash has changed = " + window.location.hash)
}
window.onhashchange =test;
}
I click a link that changes the hash and in all other browsers I get the alert in test
However in IE I get the first alert saying it supports onhashchange but then when the hash changes nothing happens.
Any ideas?