You are here: Reference > HTML > attributes > ISMAP (img)

ISMAP attribute (img)

Browser support:
Sets a Boolean value that indicates whether an img is a server-side or client-side image map.
With this attribute you can submit the coordinates of a user click on an img to a server.
Place the img element in an anchor tag and set the href attribute of the anchor tag to the URL of the server. In that case, if the img is a server-side image map, when the user clicks on the image, the URL specified by the href attribute will be called with the coordinates of the mouse click. The coordinates are relative to the top-left corner of the image.
The coordinates are appended to the end of the URL in the following form: URL?x,y, where x and y are the coordinates of the click.
JavaScript page for this attribute: isMap. You can find other example(s) there.

Possible values:

This attribute has no values.
Specifying the ISMAP attribute with an arbitrary value has the same effect as specifying it with no value.
For example, all of the following declarations have the same effect: ismap, ismap="true", ismap="false", ismap="on", ismap="ismap".
Although Boolean attributes may be used with no value in HTML, for XHTML compatibility, always use the ISMAP attribute in the following format: ismap="ismap".

Example HTML code 1:

This example illustrates the use of the ISMAP attribute:
Move the mouse over the image, and watch the statusbar.<br />
Click on the image, and watch the location bar.<br />
<a href="#">
    <img src="picture.gif" ismap="ismap" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content