HTMLAreaElement

The area element is represented by the HTMLAreaElement. It implements the properties shown in the following table.

NameDescriptionReturns
altthe alt attributestring
coordsthe coords attributestring
shapethe shape attributestring
hrefthe href attributestring
targetthe target attributestring
relthe rel attributestring
mediathe media attributestring
hrefLangthe hreflang attributestring
typethe type attributestring
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