SyntaxFix
Write A Post
Hire A Developer
Questions
Just use the event-handler. Something like this should work:
$('.js-my-element').bind('contextmenu', function(e) { e.preventDefault(); alert('The eventhandler will make sure, that the contextmenu dosn't appear.'); });