JavaScript - The location object


hash        // The anchor part of the URL (if any)
host        // The hostname:port part of the URL
hostname    // The hostname part of the URL
href        // The entire URL
pathname    // The partname part of the URL
port        // The port number portion of the URL
protocol    // The protocol portion of the URL
search    // The query string part of the URL
reload(true)    // Unconditionally reload from the server
replace(URL)    // Replace the current document in the history list

<a href="#" onClick="window.location.replace(url)">...</a>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License