Open a hyperlink in a new tab instead of a new window:
a { target-name:new; target-new:tab; }
Browser support
There is currently no browser that supports target-new.
Definitions and usages
The target-new property specifies whether a new window or a new tab or existing window opens a new destination link.
Note: The target-new property is only valid if the target-name property creates a new tab or window.
Default: | window |
---|---|
Inheritance: | no |
Version: | CSS3 |
JavaScript syntax: | object .style.targetNew="tab" |
Grammar
target-new: window|tab|none;
Value | Describe |
---|---|
window | Open the hyperlink in a new window. |
tab | Open the hyperlink in a new tab that already has a window. |
none | No new destinations are created. |