HTML DOM search Property
Complete Area Object Reference
Definition and Usage
The search property sets or returns the query string part of the link-URL in an area.
Syntax
areaObject.search=querystring
|
Example
The following example returns the query string part of the link-URL in
"Venus":
<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?id=venus" />
</map>
<p>Query string part of Venus' link-URL:
<script type="text/javascript">
x=document.getElementById('venus')
document.write(x.search)
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Return
the query string part of a link in an area in an image-map
Complete Area Object Reference
|