HTML DOM search ÊôÐÔ

¶¨ÒåºÍÓ÷¨

search ÊôÐÔ¿ÉÉèÖûò·µ»ØÄ³¸öÇøÓòÖÐ link-URL µÄ²éѯ×Ö·û´®²¿·Ö¡£

Óï·¨

areaObject.search=querystring

ʵÀý

ÏÂÃæµÄÀý×Ó¿É·µ»Ø "Venus" ÖÐµÄ link-URL µÄ²éѯ×Ö·û´®²¿·Ö£º

<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?id=venus" />
</map>

<p>Query string part of Venus' link-URL: 
<script type="text/javascript">
x=document.getElementById('venus')
document.write(x.search)
</script>
</p>

</body>
</html>
VUE