| Depr. | Version |
|---|---|
| Yes | HTML 3.2 |
| IE5.5+ | FF1+ | SA1.3+ | OP9.2+ | CH2+ |
|---|---|---|---|---|
| Full | Full | Full | Full | Full |
Syntax
Description
The
target attribute is deprecated and its use as a
layout mechanism, like that of frameset, is no longer common. However, if you do find yourself having to
maintain a frameset-based web site, you may need to open links defined in
area elements in frames or windows other than the one
in which the image map resides.
Example
The
target attribute for this area
is set to "_top":
<map name="bigthings" id="bigthings">
<area shape="rect" coords="35,4,205,108" target="_top"
href="http://en.wikipedia.org/wiki/Australia's_Big_Things"
alt="Australia's Big Things (on Wikipedia)"/>
⋮
</map>
<p><img src="giant-prawn.jpg" alt="The Giant Prawn at Ballina"
border="0" usemap="#bigthings"/></p>
Value
This attribute can take the following values:
"_blank"- sends the results to a completely new window
"frame name"- sends the results to a frame with a custom name
"_parent"- sends the results to the parent
framesetfor the currentframe "_self"- displays the form’s submission results in the same
frame (This attribute isn’t normally required, as this is the
default behavior unless the
baseelement specifies otherwise. In that case, you’d need to override the specification using"_self", for example<base target="searchresults" />.) "_top"- sends the results to the absolute top-level
frameset(in effect, the whole browser window), no matter how many nested levels down the currentframeis located
Compatibility
| Internet Explorer | Firefox | Safari | Opera | Chrome | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5.5 | 6.0 | 7.0 | 8.0 | 1.0 | 1.5 | 2.0 | 3.0 | 3.5 | 1.3 | 2.0 | 3.1 | 4.0 | 9.2 | 9.5 | 10.0 | 2.0 |
| Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full | Full |
It causes no compatibility issues, and has excellent support across all tested browsers.
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.




