Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Image name property

Image name property

Image Object Reference Image Object


Definition and Usage

The name property sets or returns the name of the image.

Syntax

imageObject.name=

name


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 Reference Image Object