Answer the question
In order to leave comments, you need to log in
Is it possible to change the address bar, leaving the same page in the window?
Is it possible to use JS to change the address bar in the browser window, but not change the actual page being viewed?
Provided that it is necessary to change the domain.
It can be useful for phishing or for tracking user behavior for a search engine.
Answer the question
In order to leave comments, you need to log in
> Can be useful for phishing
That's why it's impossible. No way.
Of course you can . This is called dynamic page refresh. Search through different tutorials and forums on this topic, because it is quite extensive, and it is difficult to give a specific solution. I can say that this whole process is done in JS, and the most difficult task in this matter is creating a false entry in the browser history, of course, it can be solved by making your own back button on your site, but it should be insanely convenient. If you are well versed in such affairs, you can try to understand the VKontakte code, because they have implemented such an idea for a long time and works incomparably
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question