查找区域的 href 属性的协议部分
- <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>Venus 的协议:
- <script type="text/javascript">
- x=document.getElementById('venus');
- document.write(x.protocol);
- </script>
- </p>
- </body>
- </html>