• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

The location Object [2|3|I]

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 host name 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)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint