JavaScript – location.assign() Method
The location.assign() method loads a new document in the current browser window.
The location.assign() method loads a new document in the current browser window.
The location.hash property sets or returns the anchor part of a URL, including the # sign.
The location.host property returns the host (IP address or domain) and port of a URL.
The location.hostname property returns the host (IP address or domain) of a URL.
The location.href property sets or returns the entire URL of the current page.
The location.origin property returns the protocol, hostname, and port number of a URL.
The location.pathname property returns the pathname of a URL.
The location.protocol property returns the protocol of the current URL, including the colon (:).
The location.reload() method reloads the current document, just as if the browser reload button was clicked.
The location.replace() method replaces the current document in the browser with a new one.
The location.search property returns the querystring part of a URL, including the question mark (?).