In some situations some web admins think disabling a right click on their web page is a good idea.
The reason for disabling a right click could be to:
- protect and hide source code
- protect images on web page
- disable copy and paste functionality...
There are opinions that disabling right mouse click is a bad practice and you shouldn't do it on your site (find out why here).
It can prevent some novice users from stealing on your site but more
advanced users will find a way (to get image or take a look on your
source code).
In this article you will find how to:
- disable right click on whole HTML web page using onmousedown event
- disable right click on whole page using attribute inside body tag
- disable right click on some part of HTML page
- disable right click on image using javascript
find at more go to this way