如何在新标签页中打开链接,而不是打开新窗口 [英] how to open link in new tab instead open new window

查看:149
本文介绍了如何在新标签页中打开链接,而不是打开新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






当我单击链接按钮时,链接应该在新选项卡而不是新窗口中打开,当我使用firefox时,它工作良好,它正在新选项卡中打开,但是当我使用铬时,它在新窗口中打开,我如何修复它当我使用chrome

Hi,




when i click on the linkbutton the link should be open in new tab instead of new window,when i use firefox it working good it is opening in new tab but when i use chrome it is opening in new window,how to i fix it to open in new tab when i use chrome

推荐答案

时,在新标签中打开我不知道您尝试过什么,因为您没有发布任何代码.但是,您应该使用Target属性,它会在新窗口或选项卡中打开,具体取决于浏览器设置.
I don''t know what you have tried since you didn''t post any code. However, you should use the Target attribute, it will open in a new window, or tab, depending on the browser setting.
<asp:hyperlink ...="" target="_blank" xmlns:asp="#unknown" />



请注意,在Chrome中,用户可以配置是否要在新窗口或新标签页中打开链接.



Note that in Chrome the user can configure if they want links to open in new windows or new tabs.


使用< asp:hyperlink ... =" target ="new" xmlns :asp =#unknown">
use <asp:hyperlink ...="" target="new" xmlns:asp="#unknown">


这篇关于如何在新标签页中打开链接,而不是打开新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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