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>
js这样弹窗不会被拦截
最新推荐文章于 2024-07-15 16:11:33 发布