Saturday, February 13, 2010

DIsable Right Click with jQuery

There are a lot of examples of javascript code snippets to disable right click on web pages. However, jQuery makes it a lot easier:

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

No comments:

Post a Comment