<img src ="https://www.PuStudy.Com/images/examples/australia-nz-map.gif" width="200" height="142" alt="Map of Australia and New Zealand" usemap ="#aus-nz"> <map name="aus-nz"> <area shape ="poly" coords ="3,47,45,12,105,7,140,60,120,125,12,90" href ="https://www.travel-explorer.com/category/places/australia/" target="name" alt="Australia"> <area shape ="poly" coords ="180,85,200,98,167,142,157,138" href ="https://www.travel-explorer.com/category/places/new-zealand/" target="name" alt="New Zealand"> </map>
The above example demonstrates usage of
target=name (where name is a name of the target window/tab) when using the
You can use your own name for the
target attribute. This can be any string with at least one character that does not start with a
U+005F LOW LINE character.
Generally, this enables you to open a URL in a new window, then to open subsequent URLs in the same window (if you used
_blank each one would open in its own new window — potentially producing an unwieldy number of tabs or windows).
However, there are some possible variations to this rule, depending on the context of the current page, and whether the page is sandboxed or not. See the W3C website for more information.
target attribute specifies the target frame to load the page into. Only to be used when the
href attribute is present.
U+005F LOW LINEcharacter.