HTMLImageElement:The img Elements
The img element is represented by the HTMLImageElement object. It implements the properties described in the following table.
Name | Description | Returns |
---|---|---|
alt | the alt attribute | string |
src | the src attribute | string |
useMap | the usemap attribute | string |
isMap | the ismap attribute | boolean |
width | the width attribute | number |
height | the height attribute | number |
complete | Returns true if the image has been downloaded | boolean |