IZZAHASHARI[DOT]BLOGSPOT[DOT]COM

Friday, 27 January 2012

Tutorial : Disable Right Click Without Alert

Hey korunk !
Izzah nak ajar korunk cam ne nak buat Disable Right Click Without Alert  !
Maksudnya , Bila orang tekan right click , takkan keluar alert message !

Follow je step di bawah ! :

1.Log in > Dashboard > Design > Add Gadget > HTML/JavaScript.

2.Copy coding kat bawah ni dan Paste kat ruangan HTML tu !

<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dauspozi.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==3) {(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>

3.Da siap ? SAVE !

Senang betul tak ??? >.<

-SELAMAT MENCUBA- 


0 Comments:

Post a Comment

LinkWithin

Related Posts Plugin for WordPress, Blogger...
This blog fully designed by IZZAHASHARI | Dont copy my tutorials or my entries ! | Alright reserved by IzzahAshari