Pages: 1
You are viewing a post by xxlylexx. View all 10 posts in 1. Get the code at the resource section of this page "Disable Code". "http://www.ehow.com/how_4498359_right-click-using-javascript-code.html" 2. Put that code on the head section or body section of y.
Code:
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade ([email protected])
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which=
) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>[/quote]
this should be place in the [b]BODY SECTION[/b] not in the head section of a html