Image height property
Image Object
Definition and Usage
The height property sets or returns the value of the height attribute of an image.
The height attribute specifies the height of the image.
Syntax
imageObject.height=
pixels
Browser support





All major browsers support the height property
Example
Example
The following example sets the height and width of the image:
Try it »
Image Object