Objects >
location
javascript location Description
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
javascript location hash
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
javascript location host
Provides the combination of the hostname and port (if any) of the server that serves up the current document.
javascript location hostname
Provides the combination of the hostname of the server that serves up the current document. The hostname property does not include the port number.
javascript location pathname
Provides the pathname component of the URL. This consists of all URL information following the last character of the domain name, including the init
javascript location port
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
javascript location protocol
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:
javascript location search
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
javascript location assign( )
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
javascript location reload( )
Performs a hard reload of the document associated with the location object. This kind of reload resets form elements to their default values (for
javascript location replace( )
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
javascript location href
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.