Restrict the Right Click on Mouse Using Java Script

Posted by Chikul under JavaScript category on | Views : 2933
Some Browsers event.button=2 is the Right Click (Ex : IE) and Some Browsers event.button=3 is the Right Click

<script language="JavaScript" type="text/javascript">
function click()
if ((event.button==2) || (event.button==3))
alert("I said NO right clicking! click ok to exit LMAO!");

Comments or Responses

Posted by: Puneet20884 on: 1/28/2010 Level:Bronze | Status: [Member]
thanks ....
Posted by: Chikul on: 1/29/2010 Level:Bronze | Status: [Member]

Login to post response