当前位置:网站首页>Damn, window in ie open()
Damn, window in ie open()
2022-07-05 22:11:00 【Luoluo 1024】
brief introduction
Now I'm going to be in IE A new page pops up in ( No address bar , status bar , Toolbars , Menu bar, etc ), And an event will be triggered after the page closes
Open the page
utilize window.open() To open a new page , Although the family parameter is set , But the open page still has an address bar , Status bar, etc. , After consulting materials and asking senior engineers and architects , For security reasons ,ie It is forbidden to open URLs without address bar status bar , But it can be set by ie Configuration of , And put ip Add the address to the trusted site to solve this problem .
var win = window.open("", "_blank", "fullscreen=no,location=no,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=yes,height=1000,width=932,left=1000,top=20");
win.location=removeHtmlTab(result.fxzbUrl) + "&hideButton=false";
window.setInterval(function(){
if(win.closed){
enableAndNoLoadingBtn("buttonAjjbxxSubmit");
currClickBtn = "buttonAjjbxxSubmit";
Artery.get("buttonFxzbCallback").click();
clearInterval(win);
}
}, 500);
return;
window.open() The URL below the parameter
https://www.runoob.com/jsref/met-win-open.html
Callback events
After setting this way , Found that the page will automatically crash soon , And when the open page closes , The buttons on the original page have not changed from non editable to editable ,debug debugging , I found there was no way to quit , Finally, it is found that there is an error in clearing the object of the scheduled operation
window.setInterval(function(){
if(win.closed){
enableAndNoLoadingBtn("buttonAjjbxxSubmit");
currClickBtn = "buttonAjjbxxSubmit";
Artery.get("buttonFxzbCallback").click();
clearInterval(win);// This shouldn't be right win Scavenging
}
}, 500);

Modified , The final version is as follows
var win = window.open("", "_blank", "fullscreen=no,location=no,scrollbars=no,menubar=no,toolbar=no,status=no,resizable=yes,height=1000,width=932,left=1000,top=20");
win.location=removeHtmlTab(result.fxzbUrl) + "&hideButton=false";
var interval = window.setInterval(function(){
if(win.closed){
enableAndNoLoadingBtn("buttonAjjbxxSubmit");
currClickBtn = "buttonAjjbxxSubmit";
Artery.get("buttonFxzbCallback").click();
clearInterval(interval);
}
}, 500);
return;
边栏推荐
- Text组件新增内容通过tag_config设置前景色、背景色
- Index optimization of performance tuning methodology
- 极狐公司官方澄清声明
- How to organize an actual attack and defense drill
- 多家呼吸机巨头产品近期被一级召回 呼吸机市场仍在增量竞争
- Interview questions for famous enterprises: Coins represent a given value
- Matlab draws a cute fat doll
- A substring with a length of three and different characters in the leetcode simple question
- Blocking of concurrency control
- Leetcode simple question check whether all characters appear the same number of times
猜你喜欢

MySQL actual combat 45 lecture learning (I)

Win11 runs CMD to prompt the solution of "the requested operation needs to be promoted"

Win11缺少dll文件怎么办?Win11系统找不到dll文件修复方法

Leetcode simple question: find the nearest point with the same X or Y coordinate

科技云报道:算力网络,还需跨越几道坎?

Serializability of concurrent scheduling

Blocking of concurrency control

Talking about MySQL index

Decorator learning 01

Overview of concurrency control
随机推荐
Win11运行cmd提示“请求的操作需要提升”的解决方法
CA certificate trampled pit
How to develop and introduce applet plug-ins
微服务入门(RestTemplate、Eureka、Nacos、Feign、Gateway)
Business learning of mall order module
他们主动布局(autolayout)环境的图像编辑器
Leetcode simple question: check whether each row and column contain all integers
Drawing HSV color wheel with MATLAB
What if the files on the USB flash disk cannot be deleted? Win11 unable to delete U disk file solution tutorial
Draw a red lantern with MATLAB
Multiplexing of Oracle control files
POJ 3237 tree (tree chain splitting)
Shell script, awk condition judgment and logic comparison &||
Net small and medium-sized enterprise project development framework series (one)
How to organize an actual attack and defense drill
AD637使用笔记
The difference between MVVM and MVC
Technology cloud report won the special contribution award for the 10th anniversary of 2013-2022 of the "cloud Ding Award" of the global cloud computing conference
Evolution of large website architecture and knowledge system
多家呼吸机巨头产品近期被一级召回 呼吸机市场仍在增量竞争