how to capture "allow popups and redirects" event from popups blocked by google chrome?

Viewed 31

Do we receive any callback event/function when user clicks allow in popups block button in google chrome?

enter image description here

1 Answers

To detect if a browser is blocking a popup with JavaScript, we can check the closed property of the window.

You can call window.open to open the url. Then we check if the window object closed property is true or undefined or if the window object is false.

If any of these are true, then the window is blocked from opening.

Related