Javascript Reference
Categories: document

javascript document images[ ]

@March 15, 2008, 1:22 a.m.
images[ ] Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1

Read-only

Returns an array of all img element objects (exclusive of pre-cached images loaded via the new Image( ) constructor) in the current document. Items in this array are indexed (zero-based) in source code order, and may be accessed by number or by string name. The presence of this property indicates support for live, swappable images.

 
Example
 
document.images["home"].src = "images/homeHilite.jpg";
 
Value

Array of img objects.

 
Default

Array of zero length.


Powered by Linode.