Javascript - Jquery disable right click on images, How to disable right click on image

Jquery disable right click on images


Disabling mouse right click menu for images using Jquery

 $(document).on('mousedown', 'img', function(e)
 {
 if(e.which === 3){
 $(this).live('contextmenu', function(e){
 e.preventDefault();
 });
 };
 });

This is will help you to avoid coping images. Jquery acts faster and simpler, which helps to avoid copying of images.        
    

The topic on Javascript - Jquery disable right click on images is posted by - Maha

Hope you have enjoyed, Javascript - Jquery disable right click on imagesThanks for your time

Tech Bluff