Give an alternative right-click lock on an image [duplicate]

0

What forms can hide the path of an image if the user clicks on it right-click ?

    
asked by anonymous 08.06.2016 / 03:20

1 answer

1

Using jQuery:

$('img').bind('contextmenu', function(e) {
    return false;
}); 

link

Source:
Disabling right click on images using jquery

    
08.06.2016 / 03:32