How to save a domain name in the address bar

Is there a better way to keep the domain name unchanged in the address bar other than the main frame?

0


source to share


2 answers


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?

+3


source


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.

+3


source







All Articles