TARGETing Windows


Targeting frame windows within HTML is accomplished by the TARGET attribute, which is of the form TARGET="window_name". Three HTML tags the TARGET attribute can appear in are:

<A>
Adding the target attribute to the anchor tag forces the load of that link into the targeted window. Example:
<A HREF="url" TARGET="window_name">link</A>

<MAP>
Adding the target attribute to the MAP tag forces the load of that link into the targeted window. Example:
<MAP SHAPE="shape" COORDS="x,y,..." HREF="url" TARGET="window_name">

<FORM>
The form tag normally displays the results of a form submission in the same window the form was submitted from. By adding the target attribute to the form tag, the result is instead loaded into the targeted window. Example:
<FORM ACTION="url" TARGET="window_name">

The window name specified by a target attribute must begin with an alpha-numeric character to be valid. All other window names will be ignored, with the exception of the following target names that all begin with the underscore character:

TARGET="_blank"
This target will cause the link to always be loaded in a new blank window, which is not named.

TARGET="_self"
This target causes the link to always load in the same window the anchor was clicked in.

TARGET="_parent"
This target makes the link load in the immediate FRAMESET parent of this document. This defaults to acting like "_self" if the document has no parent.

TARGET="_top"
this target makes the link load in the full body of the window. This defaults to acting like "_self" if the document is already at the top.