在新选项卡或窗口中打开链接 [英] Open link in new tab or window
本文介绍了在新选项卡或窗口中打开链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在新标签中打开 a href
链接而不是同一个标签?
< a href =http://your_url_here.html>连结< / a>
解决方案
您应该添加目标
属性在锚标记中的值 _blank
。 $ b
p>
< a target =_ blankhref =http://your_url_here.html>连结< / a>
Is it possible to open an a href
link in a new tab instead of the same tab?
<a href="http://your_url_here.html">Link</a>
解决方案
You should add the target
attribute in the anchor tag with the value _blank
.
For example:
<a target="_blank" href="http://your_url_here.html">Link</a>
Source: MDN | HTML element <a>
| attribute target
这篇关于在新选项卡或窗口中打开链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文