I use this code to disable the right click on my page:
$(document).ready(function() {
$(document).bind("contextmenu",function(e) {
return false;
});
});
How can I add some kind of exception, say, when you right-click on an image, the context menu should not be disabled.
Maybe something with stopPropagation, but can't figure it out.
thank
source
share