HTML DOM isMap Property
Complete Image Object Reference
Definition and Usage
The isMap property returns whether or not the image is a server-side image
map.
Syntax
Example
The following example checks if an image is a server-side image map:
<html>
<body>
<img id="planets" src="planets.gif"
width="145" height="126"
usemap="#planetmap" />
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="The planet Venus"
href="venus.htm" />
</map>
<p>Is the image a server-side image map?
<script type="text/javascript">
x=document.getElementById('planets');
document.write(x.isMap);
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Check if
an image is a server-side image-map
Complete Image Object Reference
|