The HTMLAnchorElement
interface represents hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement
object interface they also have available to them by inheritance) for manipulating the layout and presentation of such elements.
Documentation HTMLAnchorElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Variables
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. The value is a URL with a scheme like https:
, file:
, data:
or even blob:
(created with URL.createObjectURL
).
Is a DOMString
that reflects the hreflang
HTML attribute, indicating the language of the linked resource.
Is a DOMString
that reflects the rel
HTML attribute, specifying the relationship of the target object to the linked object.
read onlyrelList:DOMTokenList
Returns a DOMTokenList
that reflects the rel
HTML attribute, as a list of tokens.
Is a DOMString
representing that the rev
HTML attribute, specifying the relationship of the link object to the target object.
Is a DOMString
that reflects the target
HTML attribute, indicating where to display the linked resource.