Change URL without reloading page in IE

I want to avoid loading the page, but the URL should change and should be the same in all browsers. I am trying to use an Ajax post with changing URL. I searched and found that you can use # or .pushstates ().

Link: Change the URL in the browser without loading a new page using JavaScript

I tried using .pushstates (), but it does not work in IE <10. I do not want to use # in the url. Is there any way to achieve this in IE?

+6
source share
1 answer

I am afraid that the answer is simply no, in IE there is no way to achieve this.

You will need to accept the hash if you want to identify the various resources of your application with a URL without reloading the page.

Note : hash semantics is exactly what identifies different resources on the same page, so if you do not reload the page, using a hash can be really good .. p>

+1
source

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


All Articles