Required library edition:
Required library file: dhtmlxwindows.js
attaches an event handler
Several handlers can be attached to one and the same event, and all of them will be executed.
Note: the names of the events are case-insensitive.
dhxWins.attachEvent("onClose", function(win){ // code here });