如果有人阻止从我的网站弹出,我有这个代码来触发警报:
var w = window.open( "url","_blank", "height = 200, width = 300, top=450, left=1025" );
if(w == null || typeof(w) == "undefined" || w.location.href == 'about:blank') {
alert("Please enabled popups for this site to continue.");
}
问题是警报会显示我是否阻止或允许弹出窗口。为什么会一直触发?
非常感谢