Language References
Specifies the window or frame in which to load the contents of a hyperlink.
Inline |
<element target = _blank | _parent | _self | _top | strTarget...> |
Script |
object.target = _blank | _parent | _self | _top | strTarget |
_blank |
Loads the linked document into a new blank unnamed window. |
_parent |
Loads the linked document into the immediate parent of the document the link is in. |
_self |
Loads the linked document into the same window the link was clicked in ( the active window ). |
_top |
Loads the linked document into the topmost window. |
strTarget |
Loads the linked document into a named window or frame. |
The property is read/write with a default value of _self.
If there is no frame or window that matches the specified target, a new window is opened for the link.
The default value for target depends on the URL and site. If the user does not leave the site, the default is _self, but if the user exits to a new site, the default is _top.
In the following example, the link will load the page into a new blank window.
<a href="next.html" target="_blank">Next Page.</a>
A AREA BASE FORM
How HyperText Links Work