[点晴永久免费OA]js这样弹窗不会被拦截
|
admin
2022年12月22日 20:54
本文热度 754
|
- 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");
- }
该文章在 2022/12/22 20:55:02 编辑过