Home >Web Front-end >HTML Tutorial >How to open external links in a new window
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 an off-site link in a new window? Here are two methods:
1: qq
2: If you add it in onclick, just
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!