Objects > location
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
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
Performs a hard reload of the document associated with the location object. This kind of reload resets form elements to their default values (for
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
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
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 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 pathname component of the URL. This consists of all URL information following the last character of the domain name, including the init
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 combination of the hostname and port (if any) of the server that serves up the current document.
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
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
Powered by Linode.