Installation
Between < head > and < / head >
Code
<script language=javascript>
<!--
var message="The right button is disabled!";
function click(e) {
if (document.all) { // IE
if (event.button == 2) { // To disable the left button, put the figure 1
alert(message); // to disable the middle button, put the figure 1
return false;}
}
if (document.layers) { // NC
if (e.which == 3) {
alert(message);
return false;}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
document.oncontextmenu=function(e){return false};
//-->
</script><script language=javascript>
<!--
var message="The right mouse button is disabled!";
function click(e) {
if (document.all) { // IE
if (event.button == 2) { // To disable the left button, put the figure 1
alert(message); // to disable the middle button, put the figure 1
return false;}
}
if (document.layers) { // NC
if (e.which == 3) {
alert(message);
return false;}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
document.oncontextmenu=function(e){return false};
//-->
</script><script language=javascript>
<!--
var message="The right mouse button is disabled!";
function click(e) {
if (document.all) { // IE
if (event.button == 2) { // To disable the left button, put the figure 1
alert(message); // to disable the middle button, put the figure 1
return false;}
}
if (document.layers) { // NC
if (e.which == 3) {
alert(message);
return false;}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
document.oncontextmenu=function(e){return false};
//-->
</script><script language=javascript>
<!--
var message="The right mouse button is disabled!";
function click(e) {
if (document.all) { // IE
if (event.button == 2) { // To disable the left button, put the figure 1
alert(message); // to disable the middle button, put the figure 1
return false;}
}
if (document.layers) { // NC
if (e.which == 3) {
alert(message);
return false;}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
document.oncontextmenu=function(e){return false};
//-->
</script><script language=javascript>
<!--
var message="The right mouse button is disabled!";
function click(e) {
if (document.all) { // IE
if (event.button == 2) { // To disable the left button, put the figure 1
alert(message); // to disable the middle button, put the figure 1
return false;}
}
if (document.layers) { // NC
if (e.which == 3) {
alert(message);
return false;}
}
}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;
document.oncontextmenu=function(e){return false};
//-->
</script>