Change 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 being applied, for example, in the google reader and in wikimapia.
When developing pages using ajax, a problem arises: changing the contents of the page, we cannot change the address bar and then go to the desired page simply by copying the address. (because of this, there’s a " Link to this page " in Google maps )
In general, this is logical from a security point of view. If it was possible to change the address from javascript, we would be able to replace other sites with ourselves.
But it turns out you can do it!
page
1
2
3
4