HTML DOM Image isMap Property
The HTML DOM Image isMap Property is used to set or return whether the image is a component of a server-side image map. An image map is a picture with clickable areas. When clicking on a server-side image-map, the press coordinates square measure sent to the server as a URL query string.
Note: This attribute is permitted only if the <img> element is a child of an <a> element with a proper href attribute.
- It is used to return the isMap Property.
- It is used to set the isMap Property.
imageObject.isMap = true|false
Property Values: It contains a Boolean value which defines whether the image is a component of the server side image-map.
- true: It defines that image is a part of a server side image map.
- false: It defines that image is not a part of a server side image map.
Return Values : It returns a Boolean value which represents that whether the image is a component of a server side image map.
Example 1: Below code returns the isMap Property.
Example 2:Below code sets the isMap property to false.
- Google Chrome
- Internet Explorer
Please Login to comment...