Thank you Brian.
I added below code in welcome_banner.htmpl and it is working for all windows in edit mode
----------------------------------------------
if(typeof ahdframe._dtl != "undefined" && ahdframe._dtl.edit) {
var txt;
var r = window.confirm("Are you sure you want to close this window before saving? Click OK to close, Cancel to go back to edit.");
if (r != true) {
return;
}
}
--------------------------------------------------------------
I want to enable this for only ticket detail page in edit mode. Please help on this
-Saravana