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
anonymityOriginal
2019-05-26 09:21:349755browse

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!

Statement:
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
Previous article:How to use html td tagNext article:How to use html td tag

Related articles

See more