Name
Image — an image in an HTML document
Availability
JavaScript 1.1
Inherits from/Overrides
Inherits from HTMLElement
Synopsis
document.images[i]document.images.lengthdocument.image-name
Constructor
new Image(width,height)
Arguments
-
width,height An optionally specified width and height for the image.
Properties
Image
inherits properties from HTMLElement and defines the following
properties, most of which correspond to the HTML attributes of the
<img> tag. In JavaScript 1.1 and later, the
src and lowsrc properties are
read/write and may be set to change the displayed image. In browsers
that do not allow document reflow, such as IE 3 and Netscape 4, the
other properties are read-only.
-
border An integer that specifies the width, in pixels, of the border around an image. Its value is set by the
borderattribute. Images have borders only when they are within hyperlinks.-
complete A read-only boolean value that specifies whether an image is completely loaded or, more accurately, whether the browser has completed its attempt to load the image. If an error occurs during loading, or if the load is aborted, the
completeproperty is still set totrue.-
height An integer that specifies the height, in pixels, of the image. Its value is set by the
heightattribute.-
hspace An integer that specifies the amount of extra horizontal space, in pixels, inserted on the left and right of the image. Its value is set by the
hspaceattribute.-
lowsrc A read/write string that specifies the URL of an ...