HTML DOM Image object
The Image object
The Image object represents the embedded image.
Every time a label appears, an Image object is created.
Image object properties
W3C: W3C standard.
Attributes | describe | W3C |
---|---|---|
align | Set or return alignment with the inline content. | Yes |
alt | Setting or return an alternative text when the image cannot be displayed. | Yes |
border | Set or return the border around the image. | Yes |
complete | Returns whether the browser has completed loading the image. | No |
height | Set or return the height of the image. | Yes |
hspace | Set or return the blank of the left and right side of the image. | Yes |
longDesc | Set or returns the URL that is directed to the document that contains the image. | Yes |
lowsrc | Set or returns a low resolution version of the image to the image. | No |
name | Set or return the name of the image. | Yes |
src | Set or return the URL of the image. | Yes |
useMap | Set or return the value of the client image mapped to the client image. | Yes |
vspace | Set or return to the top of the image and the blank of the bottom. | Yes |
width | Set or return the width of the image. | Yes |
Image object event
Event | Describe | W3c |
---|---|---|
onabort | The event handle that is called when the user discards the mount of the image. | Yes |
onerror | The event handle that was called when an error occurred during the loading of the image. | Yes |
onload | The event handle that is called when the image is loaded. | Yes |
Standard properties and events
Image objects also support standard properties and events.