Disable Right Click

by Adelia Farhana
Disable Right Click! ga tau? ndeso! xD (?!)
Dashboard > Design > Add a Page element >HTML/Javascript
paste kode ini deh~

<script language=javascript>
///////////////////////////////////
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>
kalo kode yang ini Disable Right Click with Message ~

<script language=JavaScript>var message="KATA KATA KAMU";///////////////////////////////////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>


udah? save dong~ =))
Regards, Kallen 


♫ Thank you for coming. Ctrl + C = COPY! ♫

2 comments:

  1. Kalau kita nge-click link, gimana caranya supaya link itu muncul di new tab, kak?

    ReplyDelete
  2. @LeQueenChelise aku belom bikin tuto new tab ya? kapan kapan deh aku bikin, insya Allah :)

    ReplyDelete

Post a Comment

Jangan lupa mampir ke adelescence.com via PC / website yaah!

Tolong comment sesuai tema postingannya ya! ;3

Terima kasih :3