HTML DOM useMap Property
Complete Image Object Reference
Definition and Usage
The useMap property sets or returns the value of the usemap attribute of an
image.
Syntax
Example
The following example prints the value of the usemap attribute of a client-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>The value of the usemap attribute=
<script type="text/javascript">
x=document.getElementById('planets');
document.write(x.useMap);
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Return
the value of the usemap attribute of an image
Complete Image Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|