Disable Klik Kanan dengan Javascript

Saya Mendapatkan script Disable Klik Kanan dengan Javascript ini dari seorang teman dan belum mencobanya. Dia mengatakan It work like a charm.

Saya belum percaya karena belum mencobanya. Katanya sih ditempatkan diantara tag <head> dan penutup head </head>.


<SCRIPT language=JavaScript>

var message="tulis msg anda disini";
///////////////////////////////////////////
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>

Silakan Dicoba ya..Saya lemah di JavaScript dan jarang banget menggunakannya.




Update : Ternyata benar benar ampuh nih script. Silakan dicoba ya.. ini contoh filenya, save aja misal test.html. Masalahnya ini untuk di pemrograman sendiri...Untuk di blogger saya tidak tau caranya....Hiks..

hmmm lanjut dulu...
Tus cobain apa klik kanan berhasil dilakukan untuk melakukan copy textnya..Apa bisa dilakukan klik kanan..???


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<SCRIPT language=JavaScript>

var message="tulis msg anda disini";
///////////////////////////////////////////
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>

</head>

<body>

aaaaaaaaaaaaaa
</body>
</html>

Komentar FB


Probably Related Article



6 comments:

sample letter of application said...
April 18, 2011 at 10:03 PM

I cannot configure this script, I cannot figure out how this one work, Been trying to integrate with my page but it does not work.

Illustration Software said...
April 24, 2011 at 2:02 AM

Thanks, it works for me,,, at first I made some errors, but after filtering the details and figured it out, then it works. Good job picas,, this is really a great source.

Buy facebook likes said...
December 7, 2011 at 12:31 AM

www.fanbullet.com sells very real facebook fans and likes that will certainly like your products and are most likely to be turned as your customers. Traffic in this way will be huge, as many of those who are connected with your facebook fans will also visit your site.

kingston commercial real estate said...
March 22, 2012 at 3:39 AM

Thank you for your post..I look for such article along time, today I find it finally. This post give me lots of advise it is very useful for me..I hope you can go on posting more such post.. I will support you all the time.

Anonymous said...
February 24, 2014 at 12:22 AM

Thanks :D

Anonymous said...
February 24, 2014 at 12:22 AM

Thanks a lots, it's working

Related Posts by Categories



Widget by