您的位置:首页 > Web前端 > JavaScript

js这样弹窗不会被拦截

2013-06-17 14:51 197 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: