JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Document.images[] Property

Name

Document.images[] Property---the images embedded in a document

Availability

Navigator 3.0

Synopsis

document.images[i]
document.images.length
document.image-name

Description

The images property of the Document object is an array of Image objects, one for each image that is embedded in the document with the HTML <IMG> tag.

If the NAME attribute is specified in the <IMG> tag for an Image, then a reference to that image will also be stored in a property of the Document object. This property will have the same name as the image. So if an image has a NAME="toggle" attribute, then you can refer to the image with document.toggle.

See Also

"Document", "Image"


Previous Home Next
Document.forms[] Book Index Document.lastModified

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz