HTML area target property
Examples
With clickable areas and target properties of an image map:
<img src="planets.gif"
width="145" height="126"
alt="Planets"
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun"
target="_blank">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun"
target="_blank">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
try it"
Browser Support
All major browsers support the target attribute
Definition and Usage
Target area connected target attribute specifies.
Only use the href attribute to use the target property.
Differences between HTML 4.01 and HTML5
No longer support Frames and framesets. _parent, _top andframenameproperty values in common with iframes.
grammar
<area target="_blank|_self|_parent|_top|framename">
Property Value
value | description |
---|---|
_blank | Opens the linked document in a new window. |
_self | default. Opens the linked document in the same frame. |
_parent | Centralized open the linked document in the parent frame. |
_top | Opens the linked document in the entire window. |
framename | Opens the linked document in a frame specified. |