redefines default onClick handler
win | dhtmlXWindowsCell | window instance |
button | dhtmlXWindowsButton | button instance |
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);
Executes the specified JS code or function, when the user clicks the left mouse button on the object.
Back to top