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.
target attribute for this
is set to
<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>
This attribute can take the following values:
- sends the results to a completely new window
- sends the results to a frame with a custom name
- sends the results to the parent
framesetfor the current
- 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" />.)
- sends the results to the absolute top-level
frameset(in effect, the whole browser window), no matter how many nested levels down the current
It causes no compatibility issues, and has excellent support across all tested browsers.
There are no comments yet.