HTML <area> target-eigenschap
Definitie en gebruik
target
bepaalt de locatie waar het linkdocument wordt geopend.
Alleen beschikbaar href-eigenschap wordt gebruikt.
Voorbeeld
Gebruik de target-eigenschap om de locatie van het document dat wordt geopend in het beeldkaart te specificeren:
<map name="planetmap"> <area shape="rect" coords="0,0,114,576" href="sun.html" alt="Sun" target="_blank"> <area shape="circle" coords="190,230,5" href="mercur.html" alt="Mercury"> <area shape="circle" coords="228,230,5" href="venus.html" alt="Venus"> </map>
Syntax
<area target="_blank|_self|_parent|_top|framename">
Attribute value
Value | Description |
---|---|
_blank | Open the linked document in a new window or tab. |
_self | Open the linked document in the same frame as the click (default). |
_parent | Open the linked document in the entire window. |
_top | Open the linked document in the entire window. |
framename | Open the linked document in the specified iframe. |
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |