Repost: Q: How to identify originator of window.close()

  • Thread starter Thread starter brewman
  • Start date Start date
B

brewman

I asked this question last week, but received no reply so I'll try one
more time. It may be that there is no good answer.

If you have an application which overrides the onClosing event handler
how can the app determine whether the event was caused by the user
selecting the close control ('X') vs something like a system shutdown?

The sender object passed through to the event handler indicates the
event was generated by this.form in both cases. Perhaps there's a
flag set somewhere which indicates a shutdown is imminent?

thanks for any help,
Bruce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top