August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Core client-side JavaScript object.
The Image object represents an image that was created with the <img> tag. Images can be downloaded and cached dynamically by using the Image() constructor, but they cannot be displayed using the constructor. The constructor takes two optional arguments, width and height. The argument width specifies the width of the image in pixels, while the argument height specifies the height of the image in pixels. If these arguments are larger or smaller than the actual image, the image will be stretched to these dimensions. You have probably noticed that there is no argument specifying the image to load. The image to load is specified ...
Read now
Unlock full access