Image.height (Property)

The height of an image.

Availability:

DOM level - 1
JavaScript - 1.1
Netscape - 3.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:NmyImage.height

The image space is defined by an extent rectangle that surrounds the space occupied by it on the screen. The extent rectangle is the smallest rectangle that can completely enclose the item. This property specifies the height of that extent rectangle.

Including height and width information on images is optional, but it can significantly improve the performance of the layout engine as it renders the web page. This is because the layout engine does not need to wait until the image has been fetched before reserving sufficient space for it in the display.

See also:Image.width, IMG.height, IMG.width

Property attributes:

ReadOnly