Saturday, November 12, 2011

How to disabling right click using jquery

This Code Snippet to disable the mouse right click function using jquery.In script we bind the context menu event with the document element.

$(document).ready(function(){
  $(document).bind("contextmenu",function(e){
  return false;
  });
});

No comments: