Disable right click with jquery
jQuery makes it easy to disable the right click with just few lines of codes. bind contextmenu to the document and return false. however, this will disable the right click on entire document. $(function(){ //document.ready function $(document).on("contextmenu",function(e){ alert('right click disabled'); return false; }); }); to disable right click in certain elements, you can give it a class/id and use respective selector. Example right click disable right click right click no right click try it in fiddle