Pages

Friday, November 12, 2010

say NO to right click

CARA2 tok disable right click...

1. Design > Add a gadget > HTML/JavaScript..

2. copy coding nie~

<script language=javascript>
<!-- http://www.spacegun.co.uk -->
var message = "ayat korg nak tulis"; 
function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){ alert(message); return false; } 
if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) { alert(message); return false; } } 
document.onmousedown = rtclickcheck;
</script>



samat mencube kwn2~

No comments:

Post a Comment

^ Scroll to Top