Disable Right Click

by K A L L E N
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 Comment(s) on "Disable Right Click"

LeQueenChelise on 6 Mei 2012 12.52 mengatakan...

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

Kallen ( • ̀ω•́ )✧ on 9 Juni 2012 12.16 mengatakan...

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

Posting Komentar

Jangan comment SARA dan spam ya;)