Search code examples
javascripthtmlhttp-redirectlocation-href

How can I change the location of a page and not redirect the user?


I want to be able to change the address of a page but not issue any HTTP requests upon making that change. How can this be done using JavaScript?


Solution

  • You mean like, I'm visiting http://www.fakebank.example and you want the address bar to display http://www.yourbank.example? I think there are obvious reasons this won't be possible.