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

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

问题描述

这是HTML中超链接的一行:

 < a href =http://www.starfall的.com />星落< / A> 

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

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

解决方案

 < a href =http://www.starfall.com/ target =_ blank> Starfall< / a> 

它是否在标签页或其他窗口中打开,取决于用户如何配置浏览器。

This is a line for a hyperlink in HTML:

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

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天全站免登陆