Pada materi kali ini saya akan menjelaskan cera membuat disabled right click dengan jquery, untuk kali pertama teman teman harus meLOAD terlebih dahulu atau download terlebih dahulu plugin dari jquerynya sendiri. setelah itu coba teman teman masukan script javascript seperti di bawah ini di halaman yang akan diberi disabled right clik :

<!DOCTYPE HTML>
<html>
<head>
<title></title>
</head>
<style>
body{
user-select:none;
-moz-user-select:none;
-webkit-user-select:none;
-o-user-select:none;
}
</style>
<body>
<p>Agung Septiyadi</p>
</body>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js”></script>
<script>
var message=”Disable Right Click!”;
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>
</html>