HTMLAreaElement

The interface for <area>. Extends HTMLElementElement.

Reflected properties

All setters are guarded and throw NoModificationAllowedError on a read-only document.

Property Attribute Type Notes
alt alt string Reflects the content attribute verbatim.
href href string Reflects verbatim — no base-URL resolution.
target target string Reflects the content attribute verbatim.
download download string Reflects the content attribute verbatim.
rel rel string Reflects the content attribute verbatim.
hreflang hreflang string Reflects the content attribute verbatim.
type type string Reflects the content attribute verbatim.
shape shape string Reflects the content attribute verbatim.
coords coords string Reflects the content attribute verbatim.
referrerPolicy referrerpolicy enum Keywords: "" · no-referrer · no-referrer-when-downgrade · same-origin · origin · strict-origin · origin-when-cross-origin · strict-origin-when-cross-origin · unsafe-url. Missing → ""; invalid → "".

See also