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

后端 未结 9 1184
逝去的感伤
逝去的感伤 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 18:07

    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.

    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.

提交回复
热议问题