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

HTML area target property

HTML target property

HTML area Tag Reference HTML tag

Example

An image map with a clickable area and the target property:

Planets

usemap="#planetmap">

Sun

target="_blank">

Mercury Venus

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the target property


Definition and Usage

The target property specifies the target of the link in the area.

The target property is only used when the href property is used.


Differences between HTML 4.01 and HTML5

Frames and framesets are no longer supported. _parent, _top, and framename property values are commonly used in iframes.


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 area Tag Reference HTML tag