The Location object corresponds to the URL of the current document |
To load a new document into the current window, use the command: window.location.href = "foo.html"; or more simply window.location = "foo.html"; |
Location object properties: href, protocol, host, pathname, search |