Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does this site change the URL of the browser without changing pages?

If you go to this site http://www.20thingsilearned.com/ in Google Chrome and change pages, it will change the URL displayed in the browser, but seemingly not actually navigate to another page.

Opening the site in Firefox just uses plain old hash URLs. What makes them able to do this in Chrome?

like image 726
MiffTheFox Avatar asked Nov 19 '10 04:11

MiffTheFox


1 Answers

They're using the new HTML5 history.pushState() and history.replaceState() methods.

like image 61
deceze Avatar answered Oct 13 '22 18:10

deceze