Which button is clicked on menu

Is there a way to determine which mouse button is clicked when clicking on a menu? i want a different action to be taken when the user right clicks on a menu in dhtmlxmenu.



tia

don

The dhtmlxmenu doesn’t differ the button of mouse used for click event, it will generate the same event.
Because of timing issues it not possible to fetch event object when custom code attached to onclick event executed.
The only way to achieve necessary functionality - code modification ( if necessary I can suggest which code need to be modified )