class js.html.AreaElement extends Element

Available on js

DOM area objects expose the HTMLAreaElement (or HTML 4 HTMLAreaElement) 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 area elements.

Documentation for this class was provided by MDN.

Instance Fields

var alt:String

Reflects the

alt HTML attribute, containing alternative text for the element.

var coords:String

Reflects the

coords HTML attribute, containing coordinates to define the hot-spot region.

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 noHref:Bool

Indicates that this area is inactive.

Obsolete in HTML5

var pathname:String

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

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 search:String

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

var shape:String

Reflects the

shape HTML attribute, indicating the shape of the hot-spot, limited to known values.

var target:String

Reflects the

target HTML attribute, indicating the browsing context in which to open the linked resource.