javascript 判断弹出窗口是否被屏蔽程序代码

var wroxWin = window.open("http://www.shanhubei.com", "_blank");if (wroxWin == null) {
    alert("糟糕!弹出窗口被屏蔽了");}

 

更多:https://www.shanhubei.com/archives/55226.html

posted @ 2024-04-12 16:13  珊瑚贝博客  阅读(15)  评论(0)    收藏  举报