Tutorial : Disable Right Click
Wednesday, December 14, 2011 @ 10:00 PM


assalammulaaikom.. ari ni yaya nk ajar ttg..
Disable Right Click..
erm.. ramai tanye yaya buad bende ni..
oke2.. tanpa buang mase.. jom kite mulekn..

1) sign in, dashboard , design, Add a gadget , Html/Javascript..
2) copy kod ni..
<script language=JavaScript>
<!--

//edit by unwanted


var message="Masukkan Mesej yg korunk nk tujukn";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>
masukkn kod tuh dlm kotak Html/Javascript uh k?
Save dlu.. kalaw da jdy, comment la ye?