Tutorial : Disable right click without alert

Tutorial lagi...
Kalau entri lepas Tutorial Disable Right click with Alert...
Yang ni tiada alert...
Jadi bermakna tiada mesej yang keluarlah...
Tapi still lagi tak keluar perkataan Open Link in New Tab...
Hah jom buat pula :D

Disable Right Click without Alert
Copy code di bawah ye:

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

Lepas tu dari Dashboard > Design > Add a gadget > Html

Pastekan dan save!
Siap :)

★ Don't shy to comment or like this entry ★

0 000 Readers:

 
Copyright © 2011 - 2016 reserved to Aira Amir