Legally avoiding popup blocking

后端 未结 3 425
暗喜
暗喜 2020-12-17 16:17

What is causing some browsers to see my code as unsolicited?

I have a web site devoted to helping people with interactive sessions. It starts with the user clicking

3条回答
  •  攒了一身酷
    2020-12-17 16:35

    No much you can do. You could ask your users to disable pop-up blockers or inform them that a pop-up blocker is enabled by checking the window object ref returned by window.open()

    e.g.

    var w = window.open('http://domain.com');
    if(!w) { 
       //an alert in this example
       alert('oops..seems like a pop-up blocker is enabled. Please disable');
    }
    

    you could find another way and try what Brad suggests.

提交回复
热议问题