HTML DOM coords Property
Complete Anchor Object Reference
Definition and Usage
The coords property sets or returns a comma-separated list with coordinates
of a link in an image-map.
Syntax
anchorObject.coords=coordinates
|
Example
The following example returns the coordinates of a link in an image-map:
<html>
<body>
<img src="planets.gif"
width="145" height="126"
usemap="#planetmap" />
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm" />
</map>
<p>Venus coordinates:
<script type="text/javascript">
x=document.getElementById("venus");
document.write(x.coords);
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Get
the coordinates of a link in a image-map
Complete Anchor Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|