js这样弹窗不会被拦截

来源:互联网 发布:什么是手机应用数据 编辑:程序博客网 时间:2024/05/11 05:39
    var popUp = null; //弹出窗口    function OpenChoice(strHttp) {        var height = 400;        var width = 300;        var top = (screen.height - height) / 2;        var left = (screen.width - width) / 2 + 200;        if (popUp && popUp.open && !popUp.closed) {            popUp.close();        }        popUp = window.open(strHttp, "弹出选择窗口", "height=" + height + ", width=" + width + ", top=" + top + ", left=" + left + ",toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no");    }</script>

原创粉丝点击