Posted By

hijames on 05/11/10


Tagged

click right


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Disable Right Click with jQuery


 / Published in: jQuery
 

URL: http://www.devcurry.com/2009/11/disable-right-click-easily-using-jquery.html

Not a good practice, but may be useful for some applications. Maybe render a custom context menu instead of disabling it fully.

  1. $(function() {
  2. $(this).bind("contextmenu", function(e) {
  3. e.preventDefault();
  4. });
  5. });

Report this snippet  

You need to login to post a comment.