Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to suppress IE9 window.close() confirm message

After applying the window.close function IE9 raises the "The webpage you are viewing is trying to close ..." message. Is there a way to suppress this message without changing the application code, but by changing some IE-specific registry entries instead?

like image 621
Moshe Avatar asked Nov 17 '25 05:11

Moshe


1 Answers

IE doesnt allow to close the window without confirmation if the window was not opened by script
U can try this ...
window.open('', '_self', '');
window.close();

like image 67
awsome Avatar answered Nov 19 '25 19:11

awsome



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!