image (JavaScript 1.1)

An image in an HTML document.

Properties & Events

KeyDescriptionAvailability
borderWidth (in pixels) of the image border.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
completeSpecifies whether the image is completely loaded or not.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
hspaceAmount of horizontal space (in pixels) to insert to the left and the right of the image.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
srcURL of the image.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
vspaceAmount of vertical space (in pixels) to insert at the top and bottom of the image.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
widthWidth (in pixels) of the image.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
onabortEvent handler for when a user aborts the loading of the image.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
onerrorEvent handler for when the loading of the image causes an error.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
onloadEvent handler for when the image loads.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Example
No example available.

Examples having uses of: 'image'

1 votes
10k views

CSS Linear Gradient

The CSS linear-gradient function creates an effect which represents a linear gradient of colors on the element. The Top to Bottom gradient effects the element from top to bottom and the left to right gradient effects the element from left to right.
1 votes
1k views

HTML5 Canvas Image

The drawImage method allows you to insert other images (img and canvas elements) into your canvas context. To draw an image using HTML5 Canvas, we can use the drawImage() method which requires an image object and a destination point. The destination point is relative to the top left corner of the image.
2 votes
1k views

HTML Image Background

Background image inside a paragraph.