PDA

View Full Version : Automatically Close Closing Window Popup


Tollman
06-26-2002, 11:36 PM
I'm closing a parent window from a child window, and I get a windows confirm dialog stating

http://www.computrainlc.com/Courses/windowalert.jpg

I'm using this code to close the window. I use the delay to give the window that is trying to close the parent window sufficient time to load then I focus on it, so that it helps the user know that they are closing the parent window, sometime the parent window wouldn't appear on top, but with the delay it sufficiently was delayed to bring it to the top.

setTimeout('window.focus();return window.close();',1000)

Now to my actual question. I would like to close the pop up confirmation automatically instead of having the user do it. Is this possible?

x_goose_x
06-26-2002, 11:39 PM
SEARCH!

You'd have found this (http://www.codingforums.com/showthread.php?s=&threadid=768&highlight=close+alert)

Tollman
06-26-2002, 11:42 PM
Thanks, I appreciate the link, sorry about not getting a proper search to appear

Tollman
06-26-2002, 11:44 PM
Uh I went to the link and it only says that you need an Active X control and it will only work in IE, boy that sure was helpful.