PDA

View Full Version : Unload Event


blmetz
01-19-2004, 11:29 AM
Is there a way to determine if the application is closing?

Some thing like the javascript "onunload" event?

antun
01-19-2004, 11:33 AM
No, there isn't.

But what would it mean? Would it be when the HTML wrapper page that contains the <object> and <embed> tags leaves? In that case you could still use the browser JavaScript event you mentioned, although you couldn't tie it into the app.

-Antun

tspratt
01-19-2004, 01:01 PM
I was preparing to ask this question myself.

In IE, there is an onBeforeUnload that allows us a last chance to let the user stop a unload, even if they close the window using the window control.

A tie-in to the app would be a very nice to have.

antun
01-19-2004, 01:05 PM
I've filed a feature request on this.

-Antun