Location Object Members

SharePoint Designer Developer Reference

The Location object contains members that provide information about the current URL.

Methods

  Name Description
reload Reloads the specified document.

Properties

  Name Description
hash Returns a String that represents the bookmark text in the href property that follows the hash (#) mark, including the hash mark.
host Returns a String that represents the hostname and port properties for a URL.
hostname Returns a String that represents the location or URL of a hyperlink. Corresponds to the value of the href property without the protocol.
href Returns or sets a String that represents the entire URL of an HTML page.
pathname Returns a String that represents the file name or path for a location.
port Returns a String that represents the port number associated with a URL. The Object Browser states that the port property is read/write. However, you cannot set the port property in 1st_SPDesignerGeneric. If you attempt to set it, you will receive an error.
protocol Returns a String that represents how a document is accessed.
search Sets or returns a String that represents the value of an href attribute that follows a question mark.