<a href="" target="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

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

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)