Javascript Reference
Categories: images

javascript images Description

@March 15, 2008, 1:22 a.m.
imagesFirefox/Netscape/NN 3 IE 4 Chrome/Safari/DOM 1  

  

A collection (array) of all img objects contained by the document. This object is implemented only in browser versions that treat images as objects. Therefore, you can use the existence of this array object as a conditional switch surrounding statements that swap or preload images:

if (document.images) {
    // process img element objects here
}

Internet Explorer 3.01 for the Macintosh provided support for images as objects.

 
Object Model Reference
 
document.images
 
Object-Specific Properties
 
length
 
Object-Specific Methods
 
item( )namedItem( )tags( )urns( )

Powered by Linode.