Tagged: onpopstate

html5 4

HTML5: How to change the browser URL without reload

One less known feature of HTML5 is the onpopstate event. Using onpopstate you can change the browser URL via javascript, without reloading the page and the browser history will be updated accordingly. No longer do you need to use the hash(#) hack, if you want to add state in an AJAX powered application, and search engines bots will be able to crawl your pages and index them.