案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<img src="/img/eg_planets.jpg" 
5
usemap="#planetmap" />
6
7
<map name="planetmap">
8
<area id="venus" shape="circle" 
9
coords="124,58,8" 
10
alt="Venus"
11
href="/example/hdom/venus.html?id=venus" />
12
</map>
13
14
<p>Query string part of Venus' link-URL: 
15
<script type="text/javascript">
16
x=document.getElementById('venus')
17
document.write(x.search)
18
</script>
19
</p>
20
21
</body>
22
</html>