javascript location property is used for control the web page displayed by the browser.
properties of location object are: hash, host, href
The Location object contains information about the current URL.
location.hash will return value of the the #.
location.host is used for setting or returning host name.
location.href is used for set or return href.
Nov 17, 2009