Size:
Large, Medium,
Small
Mon Oct 26, 09 10:47 AM
| Category:
All
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();
}
Link:
http://blog.bitcomet.com/post/134834/
©
Add to favorites |
Quote
Reads (43) | Comments (3)