Отловить событие back для navigate у браузера:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var hash = location.hash; setInterval(function() { if (location.hash != hash) { hashUpdatedEvent(hash); } }, 100); function hashUpdatedEvent(hash) { switch(...); } |