.contextmenu( handler )Returns: jQueryversion deprecated: 3.3
Description: Bind an event handler to the "contextmenu" event, or trigger that event on an element.
-
version added: 1.0.contextmenu( handler )
-
version added: 1.4.3.contextmenu( [eventData ], handler )
-
version added: 1.0.contextmenu()
- This signature does not accept any arguments.
This API is deprecated.
Instead of .contextmenu( handler )
or .contextmenu( eventData, handler )
, use .on( "contextmenu", handler )
or .on( "contextmenu", eventData, handler )
, respectively.
Instead of .contextmenu()
, use .trigger( "contextmenu" )
.