The location Object [2|3|I]
The location object reflects information about the current URL.
Properties
hash— A string value containing the anchor name in the URL.
host— A string value containing the hostname and port number from the URL.
hostname— A string value containing the domain name (or numerical IP address) from the URL.
href— A string value containing the entire URL.
pathname— A string value specifying the path portion of the URL.
port— A string value containing the port number from the URL.
protocol— A string value containing the protocol from the URL (including the colon, but not the slashes).
search— A string value containing any information passed to a get CGI-BIN call (such as information after the question mark).
Methods
reload()— Reloads ...
Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.