简体   繁体   English

如何在弹出窗口中打开新标签页

[英]How to open new tab in popup window

I would like to have a button/link in a page with the following behavior: 我希望页面中的按钮/链接具有以下行为:

  • On the first click, open a pop-up. 第一次单击时,打开一个弹出窗口。
  • On later clicks, if the pop-up is still open, open a new tab in pop-up window. 在以后的单击中,如果弹出窗口仍处于打开状态,请在弹出窗口中打开一个新选项卡。

I tried to achieve this with in Firefox, but whatever I do non-first pop-up opens in parent window. 我试图在Firefox中实现此目的,但是我做的任何非第一个弹出窗口都会在父窗口中打开。

Any ideas? 有任何想法吗?

I do not think this can work with browser tab. 我认为这不适用于浏览器标签。 But you can use javascript to display the contents in a DOM tab ie the popup window can display tabs. 但是您可以使用javascript在DOM选项卡中显示内容,即弹出窗口可以显示选项卡。

I hope it helps. 希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM