Posted  by  admin

Close Internet Explorer Window Without Confirmation From

On my Windows 7 workstations, I have a program that opens an IE window. After the user enters some information in that window, they click a button in the window to send the info and close the window. However, when they do this, IE pops up a question dialog, letting the user know that 'the webpage you are using is trying to close the window' and asking if they want to allow this. I am trying to disable the yes/no prompt in IE, so that the window automatically closes when it tries to do so. The only way I've found that I can do that is by disabling Protected Mode in the IE security tab, but my fear is that this is disabling a lot more than I want it to.

CloseGive

Force Close Internet Explorer Window

How can I turn off only that one type of dialog, without turning off everything else that's tied to Protected Mode. We are using Win7 32-bit with IE9. I also tried this with IE8 and the same thing happens. With IE9, though, the dialog box actually pops up BEHIND the window that is trying to close, thus effectively locking IE9 completely and requiring me to kill it in the Task Manager. Hi EIMonkey, Is the webpage held within your site? Or is it a 3rd party program that's doing all of this? If it's a 3rd party program unfortunately you're out of luck.

Force close internet explorer window

The only thing I could recommend would be setting a bat file or something that modifies the settings before hand, launches your app, and close them after. Though that wouldn't help if users were browsing the net at the same time. If it's an internal application, I would talk to the developer and give them that link. Let them know the experience you're having and see if they can fix it (it's a relatively short fix).

Yes, I can confirm that it is disabled for Local Intranet and Trusted Sites. However, IE still seems to be treating this page as Internet, where Protected Mode is on.

I was using this answer: How can I close a browser window without. To close this window' prompt? I was using Internet Explorer but it. You to confirm.

Can't Close Internet Explorer Window

For example, the page being called up is something like: Servername is a local server on our local network. So, I went to Local Intranet and added to the sites list. For good measure, I went to Trusted Sites and added to that sites list. But still, it seems that IE's Internet Protected Mode is trumping that.

Close Internet Explorer Window With Vba

Why is that/what do I need to do to get that server properly recognized as Local Intranet?

Scripts are not allowed to close a window that a user opened. This is considered a security risk. Though it isn't in any standard, all browser vendors follow this. If this happens in some browsers, it's a security bug that (ideally) gets patched very quickly. None of the hacks in the answers on this question work any longer, and if someone would come up with another dirty hack, eventually it will stop working as well. I suggest you don't waste energy fighting this and embrace the method that the browser so helpfully gives you — ask the user before you seemingly crash their page.