Reputation: 37
I was curious about this since a long time ago. When we click on any link in the page, like security page or even a person's name or inbox, the url changes but the navigation bar remains as it is. It does not reload but the rest of the page does, I know things like this can be done using Jquery and by changing the elements of display but how does the url change too!
Upvotes: 0
Views: 221
Reputation: 36511
It is a combination of AJAX and the history.pushState()
method which allows you to update the URL and manipulate the browser's history:
Upvotes: 1