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