Tag: popup blocker

如何在Chrome中检测弹出窗口拦截器?

我在堆栈溢出中搜索了很多问题,并且可能在这里重复 检测Popup 但在Chrome测试中not helped for me (测试版本v26.0.1410.64) 以下方法Worked in IE and Firefox但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(); } 还有适用于Chrome的更好的解决方案吗?