Presented by BitComet

Original Post
Relative:
onHashChange_Cross_Browser

HTML5 Support Building

Oct 26, 2009, 10:47 AM [Reply]

Hi All this allow you to use onHashChange in all browsers

if (typeof window.onhashchange == "undefined") {
window.onhashchange = function(){}
function checkHash(){
if(hash != document.location.hash){
hash = document.location.hash;
window.onhashchange();
setTimeout('checkHash()', 1000);
}
setTimeout('checkHash()', 1000);
}
checkHash();
}
window.onhashchange = function(){
loadPage();
}

Oct 26, 2009, 03:01 PM [Reply]

I voted.


Senior Colonel Junior.

Oct 26, 2009, 04:05 PM [Reply]

thanks for this info !


General Ursu

Oct 27, 2009, 07:45 AM [Reply]

…………………………………………………………………..


Never forget that I'm your friend.

 

Please sign in to publish your post.