How to determine if the user clicked OK or CANCEL when exiting Silverlight?

Posted by eflles on Stack Overflow See other posts from Stack Overflow or by eflles
Published on 2010-06-04T07:22:41Z Indexed on 2010/06/05 17:42 UTC
Read the original article Hit count: 206

Based on http://mark.mymonster.nl/2009/02/28/integration-of-browsers-unloading-with-silverlight/ I know when the user closes a browser window containing Silverlight, by use of javascript. This basically creates a popup window, where the user can stay on the page(by clicking CANCEL), or exit the page (by clicking OK).

I am interested in how I can determine if the user wants to exit the page, or continue to stay on the page.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about Silverlight