HTML DOM useMap 属性
定义和用法
useMap 属性可设置或返回图像的 usemap 属性的值。
语法
imageObject.useMap=URL
实例
下面的例子可输出客户端图像映射的 usemap 属性的值:
<html>
<body>
<img id="planets" src=/w3c/jsref/"planets.gif" __width="145" height="126" __usemap="" />
</map>
<p>The value of the usemap attribute=
<script type="text/javascript">
x=document.getElementById('planets');
document.write(x.useMap
);
</script>
</p>
</body>
</html>