当前位置:网站首页>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;
边栏推荐
- What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method
- Leetcode simple question: check whether each row and column contain all integers
- Decorator learning 01
- poj 3237 Tree(树链拆分)
- 2022-07-05:给定一个数组,想随时查询任何范围上的最大值。 如果只是根据初始数组建立、并且以后没有修改, 那么RMQ方法比线段树方法好实现,时间复杂度O(N*logN),额外空间复杂度O(N*
- MySQL服务莫名宕机的解决方案
- Overview of concurrency control
- Serializability of concurrent scheduling
- Meituan dynamic thread pool practice ideas, open source
- Cross end solutions to improve development efficiency
猜你喜欢

Oracle checkpoint queue - Analysis of the principle of instance crash recovery

AD637使用筆記

K210 learning notes (IV) k210 runs multiple models at the same time

MySQL disconnection reports an error MySQL ldb_ exceptions. OperationalError 4031, The client was disconnected by the server

Storage optimization of performance tuning methodology

装饰器学习01

Matlab | app designer · I used Matlab to make a real-time editor of latex formula

"Chris Richardson microservices series" uses API gateway to build microservices

Oracle triggers

How to view Apache log4j 2 remote code execution vulnerability?
随机推荐
Leetcode simple question: find the nearest point with the same X or Y coordinate
Decorator learning 01
Create a virtual machine on VMware (system not installed)
Talking about MySQL index
Implementation technology of recovery
Tips for using SecureCRT
The real situation of programmers
The difference between MVVM and MVC
Reptile practice
Database recovery strategy
AD637使用筆記
Win11缺少dll文件怎么办?Win11系统找不到dll文件修复方法
Wonderful review of the digital Expo | highlight scientific research strength, and Zhongchuang computing power won the digital influence enterprise award
装饰器学习01
854. String BFS with similarity K
What changes has Web3 brought to the Internet?
Matlab | app designer · I used Matlab to make a real-time editor of latex formula
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
华为云ModelArts文本分类–外卖评论
Business learning of mall order module