HTMLAnchorElement:The a Element

The a element is represented by the HTMLAnchorElement object.

NameDescriptionReturns
hrefthe href attributestring
targetthe target attributestring
relthe rel attributestring
mediathe media attributestring
hreflangthe hreflang attributestring
typethe type attributestring
textGets or sets the text contained by the elementstring
protocolget or set the protocol component of the href attribute valuestring
hostget or set the host component of the href attribute valuestring
hostnameget or set the host name from the href attribute valuestring
portget or set the port component of the href attribute valuestring
pathnameget or set the path of the href attribute valuestring
searchget or set the query string of the href attribute valuestring
hashget or set the document fragment component of the href attribute valuestring
Home 
  JavaScript Book 
    DOM