Home > Web Front-end > HTML Tutorial > How to open external links in a new window

How to open external links in a new window

anonymity
Release: 2019-05-26 09:21:34
Original
9725 people have browsed it

The

tag defines a hyperlink, used to link from one page to another. The most important attribute of the

element is the href attribute, which indicates the target of the link.

How to open external links in a new window

How to open an off-site link in a new window? Here are two methods:

1: qq

2: If you add it in onclick, just

qq

onClick="window.open(''http:/ /www.163.com '')"

The above is the detailed content of How to open external links in a new window. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template