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

Name

Link

Synopsis

document.links[i]

Properties

Many of the properties of a Link object represent portions of its URL. For each such property below, the example given is a portion of the following (fictitious) URL:

http://www.oreilly.com:1234/catalog/search.html
?q=JavaScript&m=10#results
hash

A read/write string property that specifies the anchor portion of the Link’s URL, including the leading hash (#) mark. For example: “#result”.

host

A read/write string property that specifies the hostname and port portions of a Link’s URL. For example: “www.oreilly.com:1234”.

hostname

A read/write string property that specifies the hostname portion of a Link’s URL. For example: “www.oreilly.com”.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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