target-name property CSS Reference



Definition and Usage

The target-name property specifies where to open hyperlinks (target destination).

Default value:current
Inherited:no
Version:CSS3
JavaScript syntax: object.style.targetName="new"

Syntax

target-name: current|root|parent|new|modal|name;

Values

ValueDescription
currentThe link will open in the frame, tab or window where the link resides
rootThe link will open in the current tab or window
parentThe link will open in the parent frame. If the current frame has no parent, this value is treated as root
newA new destination (see target-new) is created
modalThe link will open in a new (temporarily created) modal window
nameThe link will open in the existing frame, window or tab of the specified name. If the name destination does not exist, a new destination is created with that name

Examples

a {
    target-name:new;
    target-new:tab;
}

Relative articles