Do we receive any callback event/function when user clicks allow in popups block button in google chrome?
Do we receive any callback event/function when user clicks allow in popups block button in google chrome?
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.