These events call user-defined handlers (if there are any) and pass the following parameters:
menu.attachEvent("onClick", function(id, zoneId, casState){}); menu.attachEvent("onTouch", function(id){});
Now let's attach an event handler for onClick event:
menu.attachEvent("onClick", function(id, zoneId, casState){ alert("element "+id+" was clicked"); // ctrl if (casState["ctrl"] == true) { // ctrl key was pressed with click } else { // ctrl key was not pressed with click } // alt if (casState["alt"] == true) { // alt key was pressed with click } else { // alt key was not pressed with click } // shift if (casState["shift"] == true) { // shift key was pressed with click } else { // shift key was not pressed with click } });