• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Right Click

 
suganya raj
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anybody tell me how to disable right click in my site.

Regards,
Suganya

EasyCalculation
Tofocus
 
asd
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try this ...

<SCRIPT language="JavaScript" event="onmousedown()"
for="document"> DisableRightClick(window.event);

function DisableRightClick(ae_EventRef)
{
var ls_message = "Function Disabled.";
if (ae_EventRef.button == 2)
{
alert(ls_message);
return false;
}
}
</SCRIPT>
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I asked to the google and it provide me lots of link for that script.

This link is one of them.

hope it helps.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI: browsers now have the ability to block these no right click scripts.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic