当前位置:网站首页>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;
边栏推荐
- 笔记本电脑蓝牙怎么用来连接耳机
- 数博会精彩回顾 | 彰显科研实力,中创算力荣获数字化影响力企业奖
- 他们主动布局(autolayout)环境的图像编辑器
- The Blue Bridge Cup web application development simulation competition is open for the first time! Contestants fast forward!
- ICMP 介绍
- 如何组织一场实战攻防演练
- Leetcode simple question: find the nearest point with the same X or Y coordinate
- boundary IoU 的计算方式
- Codeforces 12D Ball 树形阵列模拟3排序元素
- 如何开发引入小程序插件
猜你喜欢
Alternating merging strings of leetcode simple questions
How to view Apache log4j 2 remote code execution vulnerability?
Reptile practice
The American Championship is about to start. Are you ready?
"Chris Richardson microservices series" uses API gateway to build microservices
Win11 runs CMD to prompt the solution of "the requested operation needs to be promoted"
Dbeaver executes multiple insert into error processing at the same time
What if win11 is missing a DLL file? Win11 system cannot find DLL file repair method
Shell script, awk condition judgment and logic comparison &||
Index optimization of performance tuning methodology
随机推荐
Hysbz 2243 staining (tree chain splitting)
CRM creates its own custom report based on fetch
boundary IoU 的计算方式
Tips for using SecureCRT
Learning of mall permission module
科技云报道:算力网络,还需跨越几道坎?
Solutions for unexplained downtime of MySQL services
Database recovery strategy
How can Bluetooth in notebook computer be used to connect headphones
如何开发引入小程序插件
Performance testing of software testing
Two stage locking protocol for concurrency control
C language knowledge points link
微服务链路风险分析
Talking about MySQL index
MySQL连接断开报错MySQLdb._exceptions.OperationalError 4031, The client was disconnected by the server
让开发效率提升的跨端方案
极狐公司官方澄清声明
The solution to the problem that Oracle hugepages are not used, causing the server to be too laggy
Blocking of concurrency control