Name
Image — an image embedded in an HTML document
Availability
Client-side JavaScript 1.1
Inherits From
HTMLElement
Synopsis
document.images[i] document.images.length document.image-name
Constructor
new Image (width
,height
)
Properties
Image inherits properties from HTMLElement and defines or overrides the following:
- border
The border width of an image.
- complete
Whether an image load is complete.
- height
The height of an image.
- hspace
The horizontal padding for an image.
- lowsrc
An alternate image for low-resolution displays.
- name
The name of an image.
- src
The URL of the embedded image.
- vspace
The vertical padding for an image.
- width
The width of an image.
Event Handlers
Image inherits event handlers from HTMLElement and also defines the following:
- onabort
The handler invoked when user aborts image loading.
- onerror
The handler invoked when an error occurs during image loading.
- onload
The handler invoked when an image finishes loading.
Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.