Answer the question
In order to leave comments, you need to log in
How does VKontakte change the url without reloading the page?
Vkontakte, when you click on the links, the url changes (not the hash, but the url itself). At the same time, the page does not reload (for example, the player, if it is running, continues to play wherever we go).
Can someone explain how this magic is done?
Thanks
Answer the question
In order to leave comments, you need to log in
This does not work in all browsers.
javascript:history.pushState({}, '', '/page/');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question