AnchorElement

EventTargetNodeDOMElementElementjs.html.AnchorElement (extern class)

The HTMLAnchorElement interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.

Documentation HTMLAnchorElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

target: String

Is a DOMString that reflects the target HTML attribute, indicating where to display the linked resource.


download: String

Is a DOMString indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS, browser will adapt it.


ping: String

rel: String

Is a DOMString that reflects the rel HTML attribute, specifying the relationship of the target object to the linked object.


referrerPolicy: String

Is a DOMString that reflects the referrerpolicy HTML attribute indicating which referrer to use.


relList: DOMTokenList

Returns a DOMTokenList that reflects the rel HTML attribute, as a list of tokens.


hreflang: String

Is a DOMString that reflects the hreflang HTML attribute, indicating the language of the linked resource.


type: String

Is a DOMString that reflects the type HTML attribute, indicating the MIME type of the linked resource.


text: String

Is a DOMString being a synonym for the Node.textContent property.


coords: String

Is a DOMString representing a comma-separated list of coordinates.


charset: String

Is a DOMString representing the character encoding of the linked resource.


name: String

Is a DOMString representing the anchor name.


rev: String

Is a DOMString representing that the rev HTML attribute, specifying the relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no longer obsolete, whereas the WHATWG living standard still has it labeled obsolete. Until this discrepancy is resolved, you should still assume it is obsolete.


shape: String

Is a DOMString representing the shape of the active area.


href: String

origin: String

protocol: String

username: String

password: String

host: String

hostname: String

port: String

pathname: String


hash: String