//Fantasy Island
Tutorial : Disable Right Click
Sunday, February 26 | 0Superstar (s)!

Korang mesti tak suka ada COPYCAT masuk blog korang kan?
Okay harini nak bagi macamana nk Disable Right Click .
Senang je . hihi just ikut urutan :D

1.Dashboard > Design > Add A Page Element > Html/Javascript

2.Copy code bawah ni

<script language=JavaScript>
<!--

//edit by unwanted


var message="Masukkan Mesej Anda Disini";

///////////////////////////////////
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>

3.PASTE code ni dekat Html/Javasript

Senang je  kan ? Okayy tu je thankss ^____^


Older Post | Newer Post
The Disclaimer


Hi peeps. Welcome to my official blog. Hit the follow button and leave you footsteps. Enjoy my diary!

Diary About Stuff Link

Let's Talk!


The Credits!

Template by : Cherrybam and NadyaWiwit
Basecode by : Nadya
Header by : Munirah
Sidebar coding : Kak Fatin Full Edited : FLYLYZA