📜 ⬆️ ⬇️

Change the address bar from javascript

When I wrote the code and the text of the message I thought that I was inventing something new and only then I began to notice that it was already used, for example, in the google reader and in wikimapia.

When developing pages using ajax, the problem arises: by changing the content of the page, we cannot change the address bar and then go to the desired page simply by copying the address. (because of this, Google’s maps have a “ link to this page ”)

In general, this is logical from a security point of view. If it were possible to change the address from javascript, we would be able to replace other sites.

But it turns out you can do it!
')
page


1
2
3
4



page


1
2
3
4


Source: https://habr.com/ru/post/15736/


All Articles