Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML a target property

HTML property

HTML a Tag Reference HTML tag

Example

The target property specifies where to open the linked document:

<a href="http://www.runoob.com" target="_blank">

Visit Runoob Tutorial!

a

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the target property


Definition and Usage

The tag's target property specifies where to open the linked document.


Syntax

Attribute values

Value Description
_blank Open the linked document in a new window.
_self Default. Open the linked document in the same frame.
_parent Open the linked document in the parent frameset.
_top Open the linked document in the entire window.
framename Open the linked document in the specified frame.

HTML a Tag Reference HTML tag