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

CSS3 target property

CSS3 target property

Example

Open all hyperlinks in a new window and place the new window above all other tabs/windows:

a

{

target:new front;

}


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

No major browser supports the target property.


Property definition and usage

The target property is a shorthand property for setting the target-name, target-new, and target-position properties.

Default value: current window above
Inherited: no
Version: CSS3
JavaScript syntax: object.style.target="new front"

Syntax

target:

target-name target-new target-position

;

Value Description
target-name Specifies where to open the hyperlink (target destination).
target-new Specifies that the hyperlink should open in a new window or in a new tab of an existing window.
target-position Specifies where to place the new destination link.

Note: The target-new and target-position values are valid only when the target-name value creates a new tab or a new window.