Disable Right Click

by K A L L E N
Let's Share, nyaan! (。•ㅅ•。) :
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 
♫ Thanks for Reading, da. Ctrl + C = COPY! ♫

2 Spam(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

Rules :
✱ Menggunakan bahasa yang baik, jelas dan benar
✱ Tidak spam
✱ Tidak menyinggung perasaan author maupun orang lain

Regards,
Kallen Beilschmidt ♫

 
H o m e S t u f f s K a l l e n T o m o d a c h i T h a n k s T o F o l l o w +
K a l l e n B e i l s c h m i d t Ⓒ 2 0 1 6