Prevent pop-ups from being blocked

前端 未结 5 1089

I am using a Facebook login method in my code on page load, but when I execute this code, the pop-up blocker closes the Facebook permission window.

How can I open th

5条回答
  •  無奈伤痛
    2020-12-05 06:11

    If you try to open a popup automatically then there is a high possibility that popup blockers will become activated, as far as I know, it has to be based on some User action, for example click of a button. Try to execute this code on click of a button, it should work.

提交回复
热议问题