javascript closing IE

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

When I use the command window.close() in javascript IE
prompts me to see if I want to allow the script to close
my IE. I don't want to be prompted, how do I get rid of it?

Dave
 
IE won't display a message if a parent window closes a window that it
opened.
However, you can fool a window into thinking that it opened itself and
get around the message. It's not a bug, it's a feature!


use this code:

if (opener == null) opener = self;

opener.close();
 
Back
Top