class js.html.ImageElement extends Element

Available on js

DOM image objects expose the HTMLImageElement (or HTML 4 HTMLImageElement) 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 input elements.

Documentation for this class was provided by MDN.

Instance Fields

var align:String

Indicates the alignment of the image with respect to the surrounding context.

var alt:String

Reflects the

alt HTML attribute, indicating fallback context for the image.

var border:String

Width of the border around the image.

var complete:Bool

True if the browser has fetched the image, and it is in a supported image type that was decoded without errors.

var crossOrigin:String

The CORS setting for this image element. See CORS settings attributes for details.

var height:Int

Reflects the

height HTML attribute, indicating the rendered height of the image in CSS pixels.

var hspace:Int

Space to the left and right of the image.

var isMap:Bool

Reflects the

ismap HTML attribute, indicating that the image is part of a server-side image map.

var longDesc:String

URI of a long description of the image.

var lowsrc:String

A reference to a low-quality (but faster to load) copy of the image.

var naturalHeight:Int

Intrinsic height of the image in CSS pixels, if it is available; otherwise, 0.

var naturalWidth:Int

Intrinsic width of the image in CSS pixels, if it is available; otherwise, 0.

var src:String

Reflects the

src HTML attribute, containing the URL of the image.

var useMap:String

Reflects the

usemap HTML attribute, containing a partial URL of a map element.

var vspace:Int

Space above and below the image.

var width:Int

Reflects the

width HTML attribute, indicating the rendered width of the image in CSS pixels.

var x:Int

var y:Int