Link to home
Start Free TrialLog in
Avatar of marc_rabil

asked on

Change Browser Address URL without Relaoding the Page

We have an application where the user enters with a certain URL such as http://some_host/home.htm.  With AJAX, we change the DOM of this first page so that it is identical to another page with a URL say http://some_host/login.htm.  

If the user refreshes the browser or bookmarks the page they will be returned to /home.htm instead of /login.htm.

Is there a way we can use JavaScript to change the URLin the address bar from http://some_host/home.htm to http://some_host/login.htm without actually reloading the page in the browser?  

We need a solution (or less-desirabll of course, a combination of solutions) for recent versions of the major browsers (IE, Mozilla-family, Opera, Safari).  
Avatar of LordOfPorts
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marc_rabil


I am only awarding 50 pts since the module is useful, but after looking ti over, I could not figure out how to do what I want.