AnchorElement
Interface
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.
Extends
Element
Constructors
Code
new AnchorElement([String href]) #
AnchorElement([String href]);
Methods
Fields
The character encoding of the linked resource.
Obsolete in
HTML5
String charset;
Comma-separated list of coordinates.
Obsolete in
HTML5
String coords;
The fragment identifier (including the leading hash mark (#)), if any, in the referenced URL.
String hash;
The hostname and port (if it's not the default port) in the referenced URL.
String host;
Code
String hostname #
The hostname in the referenced URL.
String hostname;
Reflects the
href
HTML attribute, containing a valid URL of a linked resource.
String href;
Code
String hreflang #
Reflects the
hreflang
HTML attribute, indicating the language of the linked resource.
String hreflang;
Anchor name.
Obsolete in
HTML5
String name;
Code
String pathname #
The path name component, if any, of the referenced URL.
String pathname;
The port component, if any, of the referenced URL.
String port;
Code
String protocol #
The protocol component (including trailing colon (:)), of the referenced URL.
String protocol;
Reflects the
rel
HTML attribute, specifying the relationship of the target object to the link object.
String rel;
Reverse link type.
Obsolete in
HTML5
String rev;
The search element (including leading question mark (?)), if any, of the referenced URL
String search;
The shape of the active area.
Obsolete in
HTML5
String shape;
Reflectst the
target
HTML attribute, indicating where to display the linked resource.
String target;
Reflects the
type
HTML attribute, indicating the MIME type of the linked resource.
String type;
This page includes content from the
Mozilla Foundation that is graciously
licensed under a
Creative Commons: Attribution-Sharealike license.
Mozilla has no other association with Dart or dartlang.org. We
encourage you to improve the web by
contributing to
The Mozilla Developer Network.