1
<img src="/examples/planets.gif" width="145" height="126" usemap="#planetmap">
2
<map name="planetmap">
3
<area id="venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
4
</map>
5
<p>金星区域的路径:
6
<script>
7
document.write(document.getElementById('venus').pathname);
8
</script>
9
</p>
10
<p><b>注意:</b> IE和Opera浏览器返回 "js-ref/venus.htm", 而Firefox, Chrome, 和 Safari浏览器返回 "/js-ref/venus.htm".</p>