x
 
<!DOCTYPE html>
<html>
<body>
<img src="/i/html/planets.jpg" width="215" height="260" usemap="#planetmap">
<map name="planetmap">
  <area id="venus" shape="circle" coords="180,139,14" alt="Venus" href="/demo/tags/venus.html">
</map>
<p>单击该按钮可显示图像映射中“venus”区域的 href 属性的原始部分。</p>
<p><b>注释:</b>Internet Explorer 和 Opera 版本 12(及更早版本)不支持 origin 属性。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("venus").origin;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>