HTML5/Javascript: How Do We Detect When User Presses the Close (X) Button

HTML5/Javascript: How Do We Detect When User Presses the Close (X) Button

FlipOne's picture
In an HTML5/Javascript app built with Encapsulator 1.0, how do we detect when the user presses the app window's Close (X) button (at the upper right corner of the window)? Is there any specific event we can listen to when the user presses the Close (X) button? Thanks!
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
William Chavarria Cole (Intel)'s picture

Hi,

I regret to tell you that there is no specific event we can listen to when the user presses the Close (X) button. The Encapsulator does not provide such an event to be handled from JS side.

Regards
William C.

Technical Support Team
Intel AppUp(SM) Developer Program
Intel AppUp(SM) center

*Other names and brands may be claimed as the property of others.

Ozkan Altuner's picture

You can use jQuery and bind events to desired buttons etc.

Login to leave a comment.