Posted By

hijames on 05/11/10


click right

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Disable Right Click with jQuery

 / Published in: jQuery


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.