Get Updates about Tech News MuGhoTa !

How to Disable Right Click on Blogger Images

Many people want to protect their images from stolen or used by others. So we are going to share about how to Disable Right Click on Blogger images and context menu on images. By using this trick you can protect pictures from being copied.
Many people want to protect their images from being stolen or used by others. So we are going to share how to Disable Right Click on Blogger images and the context menu on images. By using this trick you can protect pictures from being copied.
How to Disable Right Click on Blogger pictures, images

How to Disable Right Click on Blogger Images

1. Go to template
2. Edit HTML and find <head>
3. And paste the given code just below <head>
<script type="text/javascript">
//<![CDATA[
function nocontext(e) {
var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;
if (clickedTag == "IMG") {
alert(alertMsg);
return false;}}
var alertMsg = "Right click on images has been disabled";
document.oncontextmenu = nocontext;
//]]>
</script>
4. Change the alertMsg text in between quotes with your choice
5. Save and Done.

How to Disable right click on a single image

To disable right click on a single image follows these steps.
1. Go to Post editor
2. Switch in HTML mode
3. Find img tag of that image and put this code
oncontextmenu='alert("Image context menu is disabled");return false;'
4. And publish.

Example of img tag and inserted code

<img oncontextmenu='alert("Image context menu is disabled");return false;' border="0" src="https//www.abhishekindora.com/exampleimage.JPG" /> 

We hope that it helped you. If you think that the article on How to Disable Right Click on Blogger Images can help someone then please make a share to them.



Sharing is Caring...

Getting Info...

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.