ImageArray object (Object/browser)

A collection of Image objects.

Availability:

JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
JavaScript syntax:-myImageArray = myDocument.images
Object properties:length
Object methods:item()

The MSIE and Netscape browsers each maintain an ImageArray object, which is just a special case of the Array object. However, although they both store objects that represent images in that array, those image objects are quite different. For a start, in Netscape they are of the class "Image" while in MSIE they are of the class "IMG" (named after the HTML tag). This is fortunate in a way, because you can use this difference to detect what kind of object you are operating on if you need to perform complex image management activities.

For MSIE image objects refer to the IMG object topic and its properties.

For Netscape Navigator image objects refer to the Image object topic and its properties.

Warnings:

See also:Collection object, Document.images[], Image object, IMG object

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
length1.1 1.13.0 3.03.0 3.04.0 4.0 n/a n/a n/a n/a n/a n/aReadOnly.

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
item() n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-