the target window of the link


<a href="" target="">

Browser
Internet Explorer Firefox Opera
Type
Inline

The target attribute of the A element specifies the target window of the link.


<a href="index.html" target="_top">linked text</a>


Attribute Value Explanation
target=" " _blank the linked page opens in the new window
_top the linked page opens in the entire window
_self the linked page opens in the same frame
_parent the linked page opens in the parent frame
frame name the linked page opens in the named frame

Target attribute details

About the frame name

Tips and Notes

The target attribute cannot be used with the Strict DTD.


Example

<p><a href="tar_example.html" target="_blank">The linked page opens in a new window</a></p>
Output

The linked page opens in a new window

(The example opens in a new window)