Hi and welcome today in this post I am going to tell you how you can disable right click on your website or blog if you are working as a graphic designer on your website or blog then you should use this functionality because if you make images or graphics and you don't want let others copy your work download that images you can simply disable right click on your blogger website by this way no one can save your images.
Turning off context menu functionality or right click functionality disable right click on images or any other element and no one can copy or save that.
This method can help you to protect your images from being copied from your website.
The attribute that can be used to disable right click is:
oncontextmenu - you can use this attribute and make it return false when user right click on an element
You can use this attribute as in my case I am going to tell you how you can disable right click on images you can use any tag instead of that
Disable Right Click Using HTML Attribute:So here is an example using on context menu attribute:
<img alt='Alternate Text' scr='URL' title='Title' oncontextmenu='return false;'/>
So oncontextmenu attribute is used in above image html tag you can use this attribute anywhere where you want to disable right click.
You simply have to paste the code above inside your head attack or anywhere else where you want.
Suggest how the simple trick to disable right click on any element of your website by this way you can secure your content and no one can copy or save your content but there is still some methods by using them you can bypass this thing.