W3School TIY
脚 本 学 堂 www.jbxue.com
编辑您的代码:
<html> <body> <img src="../i/eg_planets.jpg" usemap="#planetmap" /> <map name="planetmap"> <area id="venus" shape="circle" coords="180,139,14" href ="../example/html/venus.html" alt="Venus" /> </map> <p>noHref 状态: <script type="text/javascript"> x=document.getElementById('venus'); document.write(x.noHref); </script> </p> </script> </body> </html>
查看结果: