DHTMLX Docs & Samples Explorer

onClose

occurs before the window is closed

    dhxWins.attachEvent("onClose", function(win){
        // code here
    });