Check documentation for the latest version of dhtmlxSuite onClick DHTMLX Docs

onClick

redefines default onClick handler

void onClick(dhtmlXWindowsCell win,dhtmlXWindowsButton button);
windhtmlXWindowsCellwindow instance
buttondhtmlXWindowsButtonbutton instance

Example

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

Details

Executes the specified JS code or function, when the user clicks the left mouse button on the object.

Back to top