Try to right click on the following image:
I am sure you got success on it.
Now, try to right click on the following image, you will not be able to right click on it:
To disable "right" click, you need to add the following code in HTML:
oncontextmenu="return false;"
Standard image code sample:
<img src="http://yoursite.com/image.png" />
Add this code after image URL
oncontextmenu="return false;"
Finally your code look like this
<img src="http://yoursite.com/image.png" oncontextmenu="return false;" />
No comments:
Post a Comment