.contextmenu()


.contextmenu( handler )Returns: jQueryversion deprecated: 3.3

Description: Bind an event handler to the "contextmenu" event, or trigger that event on an element.

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" ).