javascript - Disabling right click on images using jquery - Stack Overflow

PHOTO EMBED

Sat May 28 2022 05:37:56 GMT+0000 (Coordinated Universal Time)

Saved by @rbsuperb

const images = document.getElementsByTagName('img');
for (let i = 0; i < images.length; i++) {
    images[i].addEventListener('contextmenu', event => event.preventDefault());
}
content_copyCOPY

https://stackoverflow.com/questions/4753695/disabling-right-click-on-images-using-jquery