window.open popup getting blocked during click event

前端 未结 5 2032
刺人心
刺人心 2020-11-30 07:30

What I ultimately need to do is run an $.ajax() call and then after that is run, open a new window.

A use clicks on a \"Preview\" button that saves thei

5条回答
  •  庸人自扰
    2020-11-30 08:07

    According this this post, it looks like you would have to open your window in direct response to the click (to avoid getting hit by the popup blockers) rather than waiting until the AJAX call completes to open the new window.

提交回复
热议问题