How to save a domain name in the address bar
Using a frame (or some other inner window through Flash or Silverlight, etc.) is really the only way to do this - if you try to change the location of the main window using JavaScript, it will change the location of the page to the URL you specify, so that it doesn't work either.
You have to remember RESTful - what is the intent not to resolve the url in bar to reflect the user's true location in the domain?
source to share
You can use AJAX to change the page content without changing the address.
However, if the data is in a different domain, then the address must change to point to that domain. In addition, it is recommended that the address can be bookmarked so that the user can easily return to the data. The address must reflect the content of the resource it points to.
source to share