Image name property
Image Object
Definition and Usage
The name property sets or returns the name of the image.
Syntax
imageObject.name=
name
Browser support





All major browsers support the name property.
Example
Example
Return the name of the image:
src="compman.gif" alt="Computerman" width="107" height="98">
Try it »
Image Object