Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLAreaElement Constructor() : HTMLAreaElement
Area or hyperlink in an HTML document.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ | ||
HTMLAreaElement() : HTMLAreaElementArea or hyperlink in an HTML document. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
alt
: String
Alternate text for an area.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
coords
: String
Coordinates of an area.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
shape
: String
Shape of an area.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
href
: String
Specifies that an area has no associated link.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
target
: String
Specifies where to open the linked page specified in the href attribute.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
ping
: String
Gives the URLs to be notified if the user follows the hyperlink. Only to be used when the href attribute is present.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
rel
: String
Describes the relationship between the current document and the destination URI. Only to be used when the href attribute is
present.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
relList
: DOMTokenList
A list of relationships between the current document and the destination URI.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
media
: String
Specifies which media the target URL uses. Only to be used when the href attribute is present.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
hreflang
: String
Language code of the destination URL. Only to be used when the href attribute is present.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
|
Specifies the MIME type of the linked resource. Only to be used when the href attribute is present.
|
No Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
Examples
References
Availability
JavaScript 1.2|WhatWG