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

后端 未结 9 1122
逝去的感伤
逝去的感伤 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:09

    This is also easy way but link is not visible it is appropriate for button action

    <a onclick="window.open('print.html', 'newwindow', 'width=300,height=250');"> Print</a>
    
    0 讨论(0)
  • 2020-11-27 18:12

    I believe this is a browser-only setting that cannot be set from HTML or Javascript.

    0 讨论(0)
  • 2020-11-27 18:22

    Best way to to open a new window in HTML.

    <a href="#" onclick="MM_openBrWindow('http://www.google.com','','resizable=yes,width=800,height=600')"> Google</a>
    
    <script>
    function MM_openBrWindow(theURL,winName,features) { //v2.0
      window.open(theURL,winName,features);
    }
    </script>
    
    0 讨论(0)
提交回复
热议问题