HTML

How Do I Create A No Right Click Code On My Webpages?

--Place this code anywhere into the body of your webpage. <body> code here </body>

 

<SCRIPT TYPE="text/javascript">
var message="Here you will type in whatever you want displayed when a person right clicks on your webpage!";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</SCRIPT>