1
Property Name | Description |
---|---|
hash | anchor portion of a URL, including the # sign |
host | hostname and port of the URL |
hostname | hostname of the URL |
href | entire URL of the current document |
pathname | path name of the URL |
port | port number of the URL |
protocol | protocol of the URL |
search | query portion of the URL, including the ? sign |
Method Name | Description | Values |
---|---|---|
reload() | Reloads the current document. | |
replace() | Replaces the current document with the one at the specified URL. User cannot return to the previous URL using the back button. |