HTML DOM pathname Property
Complete Area Object Reference
Definition and Usage
The pathname property sets or returns the pathname of the link-URL in an
area.
Syntax
areaObject.pathname=pathname
|
Example
The following example returns the pathname of the link-URL in the "Venus"
area:
<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' pathname:
<script type="text/javascript">
x=document.getElementById('venus');
document.write(x.pathname);
</script>
</p>
</body>
</html>
|
Try-It-Yourself Demos
Get
the pathname of the link-URL of an area in an image-map
Complete Area Object Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|