Area search Property
Area Object
Definition and Usage
The search property sets or returns the querystring part of the href attribute value.
Syntax
| areaObject.search=querystring |
Browser Support

The search property is supported in all major browsers.
Example
Example
Return the querystring part of the href attribute for 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?id=venus" />
</map>
<p>The querystring part for the "Venus" area is:
<script type="text/javascript">
document.write(document.getElementById('venus').search);
</script>
</p>
</body>
</html>
|
The output of the code above will be:
|
The querystring part for the "Venus" area is: ?id=venus |
Try it yourself »
|
Area Object
Start Creating a stunning, Flash website. It's easy and free!
Wix.com offers you a simple, powerful, drag & drop editing platform to create stunning Flash websites, layouts, and more.
With added e-commerce features such as search engine visibility and professional tools, Wix is the ultimate solution for creating a spectacular site.
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4500 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|