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;
  });
});

1 comment:

Vcom Infotech Company said...

Wow, very much useful to not copy write our contents. Thanks a lot for the sharing. Web design coimbatore | Best logo design company