Over a million developers have joined DZone.

Use Ismap To Specify A Server-side Image Map

DZone's Guide to

Use Ismap To Specify A Server-side Image Map

Free Resource
Source: ISMAP attribute (img) HTML & XHTML [dottoro.com]

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.





Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}