New window popup in ajax callback when popup blocker is enabled

I need to open a new window (and not a dialog inside the page or similar) after ajax call is successful. window.open()will be blocked by the browser popup blocker. So how to solve this?

+5
source share
3 answers

You can not. The best you can do is to provide a notification link on the page on a successful call and open a popup when the user clicks on the link.

+2
source

You can call window.open () not in the internal callback, but after the completion of the ajax call (using async: false)

+2
source

You should probably tell your users to add a whitelist of your site to the browser popup blocker.

Please understand that pop-up blockers would be useless if there was an easy way to do what you want, i.e. bypass them.

+1
source

All Articles