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>
window.location.reload(true);
page revision: 2, last edited: 15 Nov 2016 00:41





