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.locationto a new value, the browser loads the new document:
window.location = "http://www.google.com";
document.location.hrefwas used for this purpose, but are now deprecated.