w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM targetÊôÐÔ
The target property sets or returns where to open the link-URL in an area.
targetÊôÐÔ¿ÉÉèÖûò·µ»ØareaÖÐÁ¬½ÓµÄ´ò¿ª·½Ê½
areaObject.target=_blank|_parent|_self|_top |
The following example changes the target of the link in the image-map:
ÏÂÃæµÄ¾ÙÀý½«¸Ä±äÈȵãͼƬÖÐÁ¬½ÓµÄ´ò¿ª·½Ê½£º
<html>
<head>
<script type="text/javascript">
function changeTarget()
{
document.getElementById('venus').target="_blank"
}
</script>
</head>
<body>
<img src ="planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" /> <map name ="planetmap"> <area shape ="circle" coords ="124,58,8" href ="venus.htm" id="venus" /> </map> <br /> <input type="button" onclick="changeTarget()" value="Change target" /> </body> </html> |
Change the target of a link in an image-map
¸Ä±äÈÈµãµØÍ¼µÄÁ¬½Ótarget
ÆÀÂÛ (0)
All