Target='_blank' 显示在新窗口中,而不是新选项卡中,可能吗? [英] Target='_blank' to show in new window, NOT new tab, possible?
问题描述
我该怎么做?
在 firefox 中,链接会在新选项卡中打开...我不希望用户必须为此设置浏览器设置...
In firefox the link opens in a new tab... I don't want users to have to set settings of their browsers for this...
我希望每当用户在我的主页上单击联系人"时,都会出现一个带有联系表单的弹出窗口.
I want a pop-up to appear with contact-form whenever user clicks 'contact' on my main page.
我该怎么做?
推荐答案
您无法控制它 - 这完全取决于用户代理;毕竟,这才是重点.您可以指定的只是在不同的视图窗格上下文中打开页面,并且由用户决定他们希望您的窗口如何占用他们的屏幕空间/任务栏列表/Alt-Tab 快捷方式等.
You cannot control this - it's entirely at the discretion of the user-agent; which is the point, after all. All you can specify is that the page be opened in a different viewpane context, and it's up to the user to decide how they want your window to take up their screen space/taskbar list/Alt-Tab shortcuts etc.
事实上,我会更进一步说,如果可能的话,您应该完全避免打开新标签/窗口.我知道当网站这样做时我会有点生气,感觉有点笨拙,而且 1990 年代的所有 Ajax 和浮动 div 以及我们现在拥有的魔法.
In fact I'd go even further and say that if at all possible you should avoid opening up a new tab/window at all. I know that I get a little annoyed when websites do this, and it feels a bit clunky and 1990s what with all the Ajax and floating divs and magic we have nowadays.
这篇关于Target='_blank' 显示在新窗口中,而不是新选项卡中,可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!