Use JavaScript to load a new URL
March 25, 2008 23:11:26 Last update: March 25, 2008 23:11:26
The current URL is given by
Previously
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.