CSS3 targetProperty
Example
Open all hyperlinks in a new window, and place the new window for all other tabs/windows mentioned above:
a
{
target:new front;
}
{
target:new front;
}
Browser Support
![]()
![]()
![]()
![]()
![]()
No mainstream browser supports the target attribute.
Attribute Definition and Usage Instructions
The target attribute is a shorthand property that sets 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 hyperlinks should be opened in a new window or 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 only valid when the target-name value creates a new tab or new window.