The link Object [2|3|I]

The link object reflects a hypertext link in the body of a document.

Properties

  • hash— A string value containing the anchor name in the URL.

  • host— A string value containing the hostname 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 any information after the question mark).

  • target— A string value ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.