在后台打开新选项卡 [英] Open new tab in background

查看:99
本文介绍了在后台打开新选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想点击一个链接按钮打开一个新窗口。



这应该在后台进行,我们按Ctrl +点击



请帮助。非常紧急



提前谢谢

Hi,

I want to open a new window on clicking on a link button.

This should be happen in background as we do Ctrl + click

Please help. Very urgent

Thanks in advance

推荐答案

你会使用 window.open() [ ^ ]方法,但在后台打开它是浏览器的一个功能,而不是你可以实际控制的东西。



有一些技术可以创建所谓的popunders,所以你可以搜索它,但我建议不要这样做,因为很多人都有广告阻止软件会阻止你对你正在做的事情的尝试。
You would use the window.open()[^] method but having it open "in the background" is a feature of the browser and not something that you can actually control.

There are some techniques to create what are called "popunders" so you could search on that but I would recommend against that because lots of people have ad-blocking software which will block your attempt at what you are doing.


如果您使用asp链接按钮,则使用以下代码进行页面链接。按下Cnt +单击后再打开新窗口想要导航





If u use asp Link button then use following code for page link. after you press Cnt+Click then open new window when you want to navigate


<asp:LinkButton PostBackUrl="<here specify your page navigation address>" Text="PressMe" runat="server" ID="lbOpenLink"></asp:LinkButton>


这篇关于在后台打开新选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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