如何在另一个选项卡或另一个窗口中显示链接 [英] How to display link in either in another tab or another window

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

问题描述

如何在另一个选项卡或另一个窗口中显示链接

How to display link in either in another tab or another window

推荐答案

从网页的角度来看,不存在选项卡; Windows仅在将它们创建为JavaScript对象时存在.这是浏览器应用程序的结构,Web应用程序是从这些细节中抽象出来的.

在HTML中,可以使用target属性,请参见 http://www.w3schools.com/tags/att_a_target.asp [ ^ ].它们主要控制框架集的行为或创建新的窗口或选项卡(未指定窗口或选项卡;这取决于浏览器,其版本和/或应用程序设置,而不受页面控制).

该属性在XHTML中不存在.这只是我建议完全不使用target的又一个原因.新窗口还是相同窗口-功能不应依赖于此.因此,在我看来,只有用户应该对此做出决定,然后抛出浏览器.不过,这完全取决于您.

-SA
From the standpoint of a Web page, tabs do not exists; and the Windows exist only if they are created as a JavaScript object. This is the structure of the browser application, the Web applications are abstracted from these detail.

In HTML, the target attributes can be used, see http://www.w3schools.com/tags/att_a_target.asp[^]. They control mostly the frameset behavior or create a new window or a tab (it is not specified, window or a tab; this is a matter of browser, its version and/or application settings, something which is not controlled by the page).

This attribute does not exist in XHTML. This is just one more reason why I would advise not to use target at all. New or the same window — functionality should not depend on this. So, in my opinion, only the user should decide on that, throw the browser. This is totally up to you though.

—SA


设置该链接的taget =空白.它将在新窗口中打开.
set taget=blank of that link. from this it''ll open in new window.


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

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