Use JavaScript to load a new URL 

Joined:
04/09/2007
Posts:
753

March 25, 2008 23:11:26    Last update: March 25, 2008 23:11:26
The current URL is given by window.location. If you set window.location to a new value, the browser loads the new document:
window.location = "http://www.google.com";


Previously document.location and document.location.href was used for this purpose, but are now deprecated.
Share |
| Comment  | Tags