How to use css target-new attribute

silencement
Release: 2019-05-26 13:19:41
Original
2909 people have browsed it

How to use css target-new attribute

target-new attribute definition and usage

In css, the target-new attribute is used to specify whether it is in a new window or a new tab page Or open a new destination link in an existing window. This attribute is only effective when the target-name attribute creates a new tab or new window. If you need to set the three attributes target-name, target-new, and target-position at the same time, you can use the target abbreviation attribute. The target attribute can define these three attributes in one statement at the same time.

The target-new attribute is a new attribute in CSS3. Currently, mainstream browsers do not support this attribute.

target-new attribute syntax format

css syntax: target-new: window/tab/none

JavaScript syntax: object.style.targetNew ="tab"

Attribute value description

window: open a hyperlink in a new window

tab: open a new tab in an existing window Open a hyperlink in

none: Do not create a new destination

Instance

How to use css target-new attribute

The above is the detailed content of How to use css target-new attribute. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!