Tuesday, March 20, 2012

Disable right click on Image IE and FF

< script src="jquery-1.7.1.min.js" type="text/javascript"  >< /script >
< script language="javascript" >
/*
   Disable right click script (on images)- By Mano
   for  all Browsers :)
*/

$(document).ready(function(){
  $('img').bind("contextmenu",function(e){
     return false;
  });
});
< /script >

Note:  This will not work only in IE browser

1 comment:

  1. Thanks for information.I tested.. this may not work for all browsers.. for this we have to go JQuery.. this may help you.. http://aspnettutorialonline.blogspot.com/2012/05/disable-right-click-on-browser-using.html

    ReplyDelete

Followers