Have a photography site that I want to prevent image copying from. How can I disable the save image menu that pops up on an iPhone when you hold down your finger on an image?
+2
A:
Try:
document.body.style.webkitTouchCallout='none';
As an aside is it really worth it? Hacks like this do impact user expectations, and your image is on the internet, anyone who wants it can easily get it regardless of whether a context menu has been disabled in the browser they're using.
dannywartnaby
2010-09-30 14:49:23
I agree to a point, but the key word is 'easy'. I think disabling the menu, just as with a desktop browser, effectively makes downloading images difficult FOR THE AVERAGE visitor. It's still easy for me, but not for some mom trying to download images of her kid :)
Matt Dietsche
2010-09-30 15:28:48
Why are you trying to stop mums downloading pictures of their kids? You monster!. j/k. I take your point - easy is a relative term. I'm not convinced it's worth implementing, but it's not my site or userbase :). did the webkitTouchCallout work for you btw?
dannywartnaby
2010-09-30 15:36:36
Just tried it and it worked great. Thanks Danny.
Matt Dietsche
2010-09-30 15:37:09