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