Image useMap property
Image Object
Definition and Usage
The useMap property sets or returns the value of the usemap attribute of an image.
The usemap attribute specifies a client-side image map of an image (an image map with clickable areas).
The usemap attribute is related to the name attribute of the map element; together they create the association between the image and the map.
Syntax
imageObject.useMap=
value
The useMap property can have the following values:
| Value | Description |
|---|---|
| #mapname | A hash character ("#") followed by the name of the map element |
Browser support





All major browsers support the useMap property
Example
Example
Return the value of the usemap attribute of the client-side image map:
The value of the usemap attribute:
Try it »
Image Object