Open dancrew32 opened 13 years ago
for getting hashchange:
var page_url = 'http://www.yoursite.com/'; // full path leading up to hash; var current_url_w_hash = page_url + window.location.hash; // now you might have something like: http://www.yoursite.com/#123
function TrackHash() { if (document.location != page_url + current_url_w_hash) { window.location = document.location; } return false; } var RunTabs = setInterval('TrackHash()', 200);
that pushes history states to back button, which can be revisited by hash indicator