W3Schools.com

CSS Reference

CSS Reference
CSS Selectors
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
CSS Colors
CSS Color Values
CSS Color Names
CSS Color HEX
CSS3 Browser Support

CSS Properties

CSS3 target-name Property

CSS Reference Complete CSS Reference

Example

Open all hyperlinks in a new window:

a
{
target-name:new;
}


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The target-name property is not supported in any of the major browsers.


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;

Value Description
current The link will open in the frame, tab or window where the link resides
root The link will open in the current tab or window
parent The link will open in the parent frame. If the current frame has no parent, this value is treated as root
new A new destination (see target-new) is created
modal The link will open in a new (temporarily created) modal window
name The 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


CSS Reference Complete CSS Reference
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE