Skip to content Skip to sidebar Skip to footer

Update Browser Address Bar Without Reload

I like the way facebook changes the URL of the browser address bar when you scroll between images, and how it works on IE7. However, I've only found information on how to do it on

Solution 1:

The only other option I'm aware of involves using the #hash fragment to determine the "url" or "state" of the page using the hashchange event, which is not supported in IE7:

http://caniuse.com/#search=hashchange

However, there are polyfills:

http://benalman.com/projects/jquery-hashchange-plugin/

It's a rather hacky approach and it breaks HTTP protocol since it relies on javascript to output the correct content, but you may not care about that:

http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs

History.js claims cross-browser support, although I haven't used it (uses history for HTML5 browsers, hashchange for older ones):

https://github.com/browserstate/History.js/


Post a Comment for "Update Browser Address Bar Without Reload"