W3cubDocs

/Haxe JavaScript

AnchorElement

package js.html

extends ElementDOMElementNodeEventTarget

@:native("HTMLAnchorElement") Available on js

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

charset:String

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

coords:String

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

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. The value is a URL with a scheme like http:, file:, data: or even blob: (created with URL.createObjectURL).

hash:String

host:String

hostname:String

href:String

hreflang:String

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

name:String

Is a DOMString representing the anchor name.

read only origin:String

password:String

pathname:String

ping:String

port:String

protocol:String

rel:String

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

read only relList:DOMTokenList

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

rev:String

Is a DOMString representing that the rev HTML attribute, specifying the relationship of the link object to the target object.

shape:String

Is a DOMString representing the shape of the active area.

target:String

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

text:String

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

type:String

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

username:String

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/AnchorElement.html