Haxe API Documentation
Back | Index
extern class js.html.AnchorElement
extends Element
Available in js
DOM anchor elements expose the HTMLAnchorElement (or HTML 4 HTMLAnchorElement) interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of hyperlink elements.

Documentation for this class was provided by MDN.
var charset : String

The character encoding of the linked resource.

Obsolete in HTML5

var coords : String

Comma-separated list of coordinates.

Obsolete in HTML5

var download : String
var hash : String
The fragment identifier (including the leading hash mark (#)), if any, in the referenced URL.
var host : String
The hostname and port (if it's not the default port) in the referenced URL.
var hostname : String
The hostname in the referenced URL.
var href : String

Reflects the

href HTML attribute, containing a valid URL of a linked resource.

var hreflang : String

Reflects the

hreflang HTML attribute, indicating the language of the linked resource.

var name : String

Anchor name.

Obsolete in HTML5

var origin(default,null) : String
var pathname : String
The path name component, if any, of the referenced URL.
var ping : String
var port : String
The port component, if any, of the referenced URL.
var protocol : String
The protocol component (including trailing colon (:)), of the referenced URL.
var rel : String

Reflects the

rel HTML attribute, specifying the relationship of the target object to the link object.

var rev : String

Reverse link type.

Obsolete in HTML5

var search : String
The search element (including leading question mark (?)), if any, of the referenced URL
var shape : String

The shape of the active area.

Obsolete in HTML5

var target : String

Reflectst the

target HTML attribute, indicating where to display the linked resource.

var text(default,null) : String
Same as the textContent property.
var type : String

Reflects the

type HTML attribute, indicating the MIME type of the linked resource.

function toString() : String
Back | Index