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

c# - HttpResponseMessage System.InvalidOperationException -

sql - Postgresql error: "failed to find conversion function from unknown to text" -