当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM search属性
The search property sets or returns the query string part of the link-URL in an area.
search属性可设置或返回area中连接的查询部分
areaObject.search=querystring |
The following example returns the query string part of the link-URL in "Venus":
下面的举例将返回"Venus"中连接的查询字符串部分:
<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> |
Return the query string part of a link in an area in an image-map
返回热点地图中连接里的查询字符串部分