Hi Tara,
If I remember correctly that does not necessarily work across all browsers and no matter what there are ways to get around it so don't be to dependent on it. One piece of advice is that while most browsers will save img tags when the html page is saved they will ignore background images.
There was one interesting trick I found a few years ago.
- Create a transparent image, give it a unique name (something so as that it is not obvious what it is).
- Use that image in an img tag.
- Then use your real image as a background image attached to the image tag.
Most when they try to save images they will use the save image as option without realising that it is not what they are truly after.
Another way to mess with most browsers is instead of having an image file to actually embed it in the css or html as a data uri:
https://css-tricks.com/data-uris/http://jpillora.com/base64-encoder/Honestly, industry practice is to discourage active image protection as there is no way to truly protect something that is viewable on the screen. I work with a lot of artists and photographers and the only thing we can tell them is just keep the uploaded image low resolution and possibly water marked so as if they are abused they are not the best quality.
Hope this helps expand your idea.
Warm Regards,
Harris Ingram
Web Developer