HTML DOM protocol 屬性
定義和用法
protocol 屬性可設(shè)置或返回某個(gè)區(qū)域中 link-URL 的協(xié)議。
語(yǔ)法
areaObject.protocol=protocol
實(shí)例
下面的例子可返回 "Venus" 區(qū)域中 link-URL 的協(xié)議:
<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' protocol:
<script type="text/javascript">
x=document.getElementById('venus');
document.write(x.protocol
);
</script>
</p>
</body>
</html>