Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Facebook and Github change there URL without reloading the page

Only update part of page and change the url.

like image 953
Bruce Dou Avatar asked Oct 11 '11 05:10

Bruce Dou


People also ask

How do I change URL but not reload?

history. pushState({page: "another"}, "another page", "example. html"); This will change the URL, but not reload the page.

Which method is used to change the address in address bar of the browser?

HTML5 History API allows browsers to change the URL in browser address bar without reloading or refreshing the page using pushState function. The pushState method works similar to window.


1 Answers

Check out https://github.com/defunkt/jquery-pjax, that's where all the magic is

like image 144
Ana Betts Avatar answered Oct 13 '22 12:10

Ana Betts