How can I detect an address bar change with JavaScript?
HTML5 introduces a hashchange event which allows you to register for notifications of url hash changes without polling for them with a timer. It it supported by all major browsers (Firefox 3.6, IE8, Chrome, other Webkit-based browsers), but I’d still highly suggest to use a library which handles the event for you – i.e. by … Read more