Name

images — NN 3 IE 4 DOM n/a

Synopsis

An 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) {
    image object statements here
}

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

Object Model Reference

NN

document.images[i]

IE

document.images[i]

document.images(i)

Properties

length

    

Methods

item( )

  

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.