I studied the code for the plugin below and wondered where and when it binds the Right Click event. All he does is
Plugin link link: http://www.javascripttoolbox.com/lib/contextmenu/
$(this).bind('contextmenu',function(e){cmenu.show(this,e);return false;});
and "contextmenu" is a custom jquery event type.
Can someone explain how this all works?
I checked that there are click events, but they are bound to menu items, not to the item to which the menu is bound.
thanks
Answer: "contextmenu" is not a custom event type. Actually this is a different name (matching, etc.) For a "right click"
jquery
Nilesh
source share