javascript - How to trigger a popup message on click the close button of a jqueryui window? -


i want trigger message on click on close button of jqueryui window.

see jqueryui window here. want give confirmation message on click close button.

http://jqueryui.com/dialog/#modal-message

any idea?

attach event listener on beforeclose event:

$("#dialog").on("dialogbeforeclose", function(event, ui) {     // stuff, presumably return false prevent closing dialog }); 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -