How to change the URL displayed in the browser without leaving the page

后端 未结 4 1308
温柔的废话
温柔的废话 2020-12-01 13:31

Is it possible with JavaScript to change the browser\'s URL, but not leave the page?

4条回答
  •  情书的邮戳
    2020-12-01 13:51

    I'm going to assume you are talking about the visible URL in the URL bar.

    The answer is No, it is a major security vulnerability when an application tries trick users into thinking that are at another site.

提交回复
热议问题