HTML DOM hash Property
Complete Area Object Reference
Definition and Usage
The hash property sets or returns the anchor part of a URL in an area.
Syntax
areaObject.hash=anchorname
|
Example
The following example changes the href anchor part from #top to #bottom:
<html>
<head>
<script type="text/javascript">
function changeLink()
{
document.getElementById('venus').hash="bottom"
}
</script>
</head>
<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="venus2.htm#top" />
</map>
<input type="button" onclick="changeLink()" value="Change link" />
</body>
</html>
|
Try-It-Yourself Demos
Change the
anchor part of a link in 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. |
|
|
|