>
 





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

Want automatic updates? Subscribe to our RSS feed or
Get Email Updates sent directly to your inbox!

Currently rated 5.0 by 4 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories : All | jQuery | Tips
Share & Support : del.icio.us | DZone it! | Kick it! | digg it! | Furl | Technorati


Comments

October 22. 2009 17:30

Social comments and analytics for this post

This post was mentioned on Twitter by bloggingdev: Disabling Right Click (context menu) with jQuery - http://su.pr/3n1JXq

uberVU - social comments | Reply

November 13. 2009 13:20

Great tip! Unfortunately it doesn't seem to work with Opera, but with Safari and Firefox is working perfectly. Thank you!

Cesco | Reply

Add comment




(Will not be displayed!)








Free CMS