Dart API Referencedart:htmlAnchorElement

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

Code String toString() #

String toString();

Fields

Code String charset #

The character encoding of the linked resource. Obsolete in HTML5
String charset;

Code String coords #

Comma-separated list of coordinates. Obsolete in HTML5
String coords;

Code String download #

String download;

Code String hash #

The fragment identifier (including the leading hash mark (#)), if any, in the referenced URL.
String hash;

Code String host #

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;

Code String href #

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;

Code String name #

Anchor name. Obsolete in HTML5
String name;

Code final String origin #

final String origin;

Code String pathname #

The path name component, if any, of the referenced URL.
String pathname;

Code String ping #

String ping;

Code String port #

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;

Code String rel #

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

Code String rev #

Reverse link type. Obsolete in HTML5
String rev;
The search element (including leading question mark (?)), if any, of the referenced URL
String search;

Code String shape #

The shape of the active area. Obsolete in HTML5
String shape;

Code String target #

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

Code String type #

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.