target=“_blank” is not working in firefox?

前端 未结 2 964
情书的邮戳
情书的邮戳 2020-12-20 19:24

target=\"_blank\" is not working with firefox

相关标签:
2条回答
  • 2020-12-20 19:39

    This is not working because you're calling a Javascript event to close the current window and after launching the "_blank" to acces to your link. You have to create a Js method to launch your link and after close the current window.

    0 讨论(0)
  • 2020-12-20 19:43

    Use below instead.

    <a href="#" onclick="window.open('login.php','_blank');window.close();return false">
      <img src="images/loginto-apply-but.gif" border="0"/>
    </a>
    
    0 讨论(0)
提交回复
热议问题