[Chapter 21] Reference: Image.name
Author: David Flanagan
Date: Fri Aug 29 11:16:43 1997

#

| Chapter 21 JavaScript Reference |

# Image.name Property

## Name

Image.name Property---the name of an image

## Availability

Navigator 3.0

## Synopsis

    image.name

## Description

`name` is a read-only string property of the Image object. Its value is specified by the `NAME` attribute of the HTML `<IMG>` tag that creates the Image object. Image objects created with the `Image()` constructor function do not have names, and cannot have names assigned.

## Usage

Images created in an HTML document with the `<IMG>` tag are listed in the `document.images[]` array in JavaScript. If an image is given a name, then the image is also stored in a property with that name in the document object. For example, an image with the attribute:

    NAME="toggle_button"

could be referred to as:

    document.toggle_button

## See Also

"Image"

Image.lowsrc |  | Image.onabort()