I try to enable a brwoserback button for my tabs. But the problem is that in some cases the the hash dissapears.
function showTab1(){ window.location.hash = 'tab1'; oldHash = window.location.hash; //showTab1 } function showTab2(){ window.location.hash = 'tab2'; oldHash = window.location.hash; //showTab2 } function checkBrowserBackButtonInHome(){ setInterval(function(){ if(window.location.hash != oldHash) { //Do something } }, 50); } showTab1(); and than I click on showTab2. And when I click on the browser back button the hash dissapears. index.php instead of index.php#tab1
EDIT:
It seems like this only happens in chrome web browser