html no right click, how to disable web page right click, tips, guide disable web page right click
(Website Helper) disable right click Number of Visitors: Site Map

disable web page right click

Website Design
Website Promotion
Graphic Design
Free Software
Computer Tips
Discount Stores
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>

oncontextmenu="return false;"

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">
     <asp:datagrid id="seo_data">---</asp:datagrid>

2. Use javascript, which is a bit complicited.

<script language="javascript">
msg="Thanks for your visiting";
Function disableclick(e)
     return false;	
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 ..."

(Website Helper) disable right click (c) EduSoftMax -