Hello,
First:
- You have a bugs in your documentation at the dhtmlxWindows -> Events page
myWin.attachEvent(“onClosed”, function(win) {
alert(“Window with ID " + win.getId() + " will be closed.”);
});
The event Name is “onClose” without “d”
Second:
- When the event shots, the function execute but the window dont close
Hello,
Sorry for the misleading information in the documentation.
We will change the event name.
In order to confirm window closing the event handler should return true:
myWin.attachEvent(“onClosed”, function(win) {
alert(“Window with ID " + win.getId() + " will be closed.”);
return true
});