window.location.hash | the part of the URL that follows the # symbol. |
window.location.host | the host name and port number |
window.location.hostname | the host name (without the port number). |
window.location.href | The entire URL |
window.location.pathname | The path (relative to the host). |
window.location.port | The port number of the URL |
window.location.protocol | The protocol of the URL |
window.location.search | the part of the URL that that follows the ? symbol |
· Methods
assign(url) | Load the document at the provided URL. |
reload(forceget) | Reload the document from the current URL. forceget is a boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache. |
replace(url) | Replace the current document with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session history, meaning the user won't be able to use the Back button to navigate to it. |
toString() | Returns the string representation of the Location object's URL. See the JavaScript reference for details. |
I have delicious on JavaScript
No comments:
Post a Comment