We help IT Professionals succeed at work.
Get Started

Webpage wants to close a window - disable prompt

5,805 Views
Last Modified: 2013-10-07
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.

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.
Comment
Watch Question
CISO
Commented:
This problem has been solved!
Unlock 1 Answer and 17 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE