called on the right mouse click
id | string | id of item on which right click occurs |
e | Event | native event object |
boolean | true to trigger the default action, false to block it |
myList.attachEvent("onBeforeContextMenu", function(id, e){
//custom code here
});
the event is blockable, returning false will block the default action
Back to top