This site provides users with the information about html no right click, how to disable web page right click, tips, guide, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
To make the web page no right click or disable web page right click is very important. It can prevent surfers from viewing your html source code and copy it without asking your permission.
The following are two methods that you can use to do this trick.
1. For the simple way, you just need to add the following code into your web page's <body>
The following is an example:
<body oncontextmenu="return false;">
You can also disable the right click for specific control. The following is the code for you.
<tr oncontextmenu="return false">
msg="Thanks for your visiting";
Note: It is better to show "Thanks for your visiting" in the message box popped up instead of the message "You are not allowed to ..."