Possible Duplicate:
How could I change window's location without reloading and # hack?
Facebook and Ajax
How does Facebook change the url without reloading the page?
Earlier facebook used the hash (#) to prevent the page from reloading each time new data had to load, but now a days Facebook change the whole url?! How the beeep is that possible?
There is no way to modify the URL in the browser without reloading the page. The URL represents what the last loaded page was. If you change it ( document. location ) then it will reload the page.
In fact, JavaScript provides the location object, a part of the window object, which allows you to perform different URL-related operations.
They're using the History API. You can find some more demos at MDN too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With