DHTMLX Docs & Samples Explorer

Index
dhtmlxwindows
Event Handling

### onClick Button Event

redefines default onClick handler

        dhxWins.window(id).button(id).attachEvent("onClick", function(){
            // code here
        });
        // or
        function doOnButtonClick(){
            // code here
        }
        dhxWins.window(id).button(id).attachEvent("onClick", doOnButtonClick);