I have searched many issue in stack overflow and might be duplicate here Detect Popup
But not helped for me
while testing in Chrome (tested v26.0.1410.64)
Following Approach Worked in IE and Firefox
but not in Chrome
var popup = window.open(winPath,winName,winFeature,true);
if (!popup || popup.closed || typeof popup.closed=='undefined'){
//Worked For IE and Firefox
alert("Popup Blocker is enabled! Please add this site to your exception list.");
window.location.href = 'warning.html';
} else {
//Popup Allowed
window.open('','_self');
window.close();
}
Any better solution that works for Chrome also?