Objects > location
There is one location object in each window or frame. The object stores all information about the URL of the document currently loaded into that w
Indicates that portion of a URL following the # symbol, referring to an anchor location in a document. This property contains its data only if the
Provides the combination of the hostname and port (if any) of the server that serves up the current document.
Provides the combination of the hostname of the server that serves up the current document. The hostname property does not include the port number.
Provides the pathname component of the URL. This consists of all URL information following the last character of the domain name, including the init
Provides the port component of the URL, if one exists. This consists of all URL information following the colon after the last character of the doma
Provides the protocol component of the URL. This consists of all URL information up to and including the first colon of a URL. Typical values are:
Provides the URL-encoded portion of a URL that begins with the ? symbol. A document that is served up as the result of the search also may have th
This method was intended to be hidden from view of scripters, but remains available for now. It performs the same action as assigning a URL to the
Performs a hard reload of the document associated with the location object. This kind of reload resets form elements to their default values (for
Loads a new document into the reference window and replaces the browser's history listing entry of the current document with the entry of the new do
Provides the complete URL of the document loaded in the window or frame. Assigning a URL to this property is how you script navigation to load a new
Powered by Linode.