![]() ![]() I try to avoid browser sniffing in favor of feature detection. What I would like to do is be able to tell if the popup was blocked by Chrome's popup blocker. ![]() ![]() Of course, the test is working to an extent since Chrome doesn't actually block the popup, but opens it in a tiny minimized window at the lower right corner which lists "blocked" popups. The "POPUP BLOCKED" section is never reached when the popup is blocked. If(!newWin || newWin.closed || typeof newWin.closed='undefined')īut this does not work in Chrome. Here's the basic test: var newWin = window.open(url) I am aware of javascript techniques to detect whether a popup is blocked in other browsers (as described in the answer to this question). ![]()
0 Comments
Leave a Reply. |