CSS target-name Property

Description

The target-name property defines the name of the target destination, including a few keywords for well known destinations.

The target-name property has been deprecated or is no longer in any CSS working groups.

Initial value
current
Applies to
Hyperlinks
Inherited
No
Computed value
Specified value
Animatable
No
JavaScript syntax
object.style.targetName

Syntax

target-name: current | root | parent | new | modal | <string>

Values

  • currentThe name of the current frame, tab or window where the link resides. This value never causes a new destination to be created.
  • rootThe name of the current tab (if there is one) or window. This value never causes a new destination to be created.
  • parentThe name of the parent of the current frame. If the current frame has no parent this value is treated as 'root'. This value never causes a new destination to be created.
  • newA new destination (see target-new) is always created.
  • modalA new modal window is temporarily created.
  • <string>The target is displayed in the existing frame, window or tab of that name. If no such named destination exists, a new destination (see target-new) is created with that name.

Example

.class {
   target-name: parent; 
}

Browser Support

The following table will show you the current browser support for the CSS target-name property.

Desktop
Edge Chrome Firefox Opera Safari
?????
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
??????