如何让 HTML 在另一个窗口或选项卡中打开超链接? [英] How to make HTML open a hyperlink in another window or tab?

查看:25
本文介绍了如何让 HTML 在另一个窗口或选项卡中打开超链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是 HTML 中超链接的一行:

This is a line for a hyperlink in HTML:

<a href="http://www.starfall.com/">Starfall</a>

因此,如果我点击Starfall",我的浏览器 - 我正在使用 FireFox - 将带我到那个新页面,我的窗口内容将会改变.我想知道,如何在 HTML 中执行此操作,以便在新窗口中打开新页面而不是更改前一个?HTML中有这样的方法吗?

Thus, if I click on "Starfall" my browser - I am using FireFox - will take me to that new page and the contents of my window will change. I wonder, how can I do this in HTML so that the new page is opened in a new window instead of changing the previous one? Is there such a way in HTML?

如果是,有没有办法在浏览器的另一个选项卡(而不是另一个窗口)中打开请求的页面?

And if yes, is there a way to open the requested page in another tab (not another window) of my browser?

推荐答案

<a href="http://www.starfall.com/" target="_blank">Starfall</a>

它是否在选项卡或其他窗口中打开取决于用户如何配置她的浏览器.

Whether it opens in a tab or another window though is up to how a user has configured her browser.

这篇关于如何让 HTML 在另一个窗口或选项卡中打开超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆