Check if a dialog is open

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Check if a dialog is open

Post 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...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you are unable to know that information.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;-)
Post Reply