//检验弹窗是否被浏览器内置屏蔽 var wroxWin = window.open("http://www.baidu.com","_blank"); if(wroxWin == null){ alert("弹窗已经被浏览器屏蔽"); } //监测弹窗是否被浏览器内置的屏蔽 var blocked = false; try { var wroxWin = window.open("http://www.wrox.com", "_blank"); if (wroxWin == null){ blocked = true; } } catch (ex){ blocked = true; } if (blocked){ alert("弹窗已经被浏览器屏蔽"); }