modal dhtmlxWindow and onclose event

Hi,



I have a modal dhtmlxWindow with a form and 2 buttons Cancel and Validate with a close function attach.

I also attach a onclose event to the window (work perfectly).



I would like to know which button fired the event to make a validation processing or directly close the window.



Is it possible and how ?



Thanks


Hello,


This issue doesn’t related to window component. As window doesn’t handle the events inside its content.


As the recommendation … You can set necessary onclick handlers for each button: <input onclick=“validate()” …>