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


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.

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

Array of img objects.


Array of zero length.

Powered by Linode.