HTML CSS Reference/HTML Attributes Reference/target
Содержание
"target" Example
<source lang="html4strict">
<HTML>
<head><Title>Example For target</Title></head>
<BODY>
<a href="http://www.w3c.org" target="_blank">W3C Consortium (blank)</a>
<a href="http://www.microsoft.ru" target="_parent">Microsoft home page (parent)</a>
<a href="http://www.yahoo.ru" target="_self">Yahoo home page (self)</a>
<a href="http://www.amazon.ru" target="_top">Amazon home page (top)</a>
</BODY>
</HTML>
</source>
target is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> <area> | | |<base> <form> | | |<link> | +----------------+--------------------------------------------------------------+
</source>
target Possible Values
<source lang="html4strict">
Possible Values name Document is loaded into the window or frame with the specified name (IE4+ only). _blank Document is loaded in a new window. _media Document is loaded in the HTML content area of the Media Bar (IE6 only). _parent Document is loaded in the parent window. _search Document is loaded in the browser search pane (IE5+ only). _self Document is loaded in the same window. _top Document is loaded in the topmost window for the site.
</source>
"target" Syntax and Note
<source lang="html4strict">
Note:
This attribute specifies the link target for window or frame. If there nothing is matched, a new window is opened for the link.
Syntax:
<element target="value"> . . . </element>
</source>