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