Target='_blank' to show in new window, NOT new tab, possible?

后端 未结 9 1154
逝去的感伤
逝去的感伤 2020-11-27 17:25

How can I do this?

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 app

9条回答
  •  醉梦人生
    2020-11-27 17:59

    When I was looking into this issue I noticed that the "height" and "width" portions of the window.open() function were what made the link open in a new window instead of a new tab.

    So to open a similarly-sized browser I just passed the window.innerHeight and window.innerWidth to the window.open() function.

    I would have just commented on @M2012's answer, but I don't have enough points yet...

    Hope this helps!

提交回复
热议问题