Page 1 of 1

Check if a dialog is open

Posted: Tue Jan 25, 2005 2:08 pm
by Chris Corbyn
Is there anyway I can use JavaScript to check if a "Save File" dialog box is open?

I need to be able to know when the user has clicked "Save" or "Cancel" so that I can close the window it was launched from.

I'm guessing JavaScript isn't that diverse..... ?? Or is it?

NOTE: MS IE closes the window by default so it's just netscape/mozilla I want it to work for really...

Posted: Tue Jan 25, 2005 2:10 pm
by feyd
you are unable to know that information.

Posted: Tue Jan 25, 2005 2:25 pm
by Chris Corbyn
Damn. Figures... I'll just have do one of two things:
1. Set a timeout (and hope the user downloads the file before it times out)
2. Provide a second button to close all open windows

Thnaks for the advice ;-)