Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

(code) Disable Right Click

here is a java code i made along time ago and recently found it while cleaning out my computer hard drive it will help prevent copying things from your website but you can still use Ctrl + C to copy things
Code
<script language="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Please don't steal my stuff!!!");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
</script>
Wrong section...

This section is for Java, not JavaScript.

Also, it doesn't stop people from going to file -> view source or what ever via their browser.
i know and oops i didnt notice sorry thought i posted it in the right section
Who cares.............. thank you :D
lol your welcome zn4k3


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Help] by TizenFeb 7, 2014 08:20 AM 3 127 Feb 7, 2014 08:20 AM
Last Post: Tizen
by mysteriousmysterDec 9, 2011 12:35 AM 0 56 Dec 9, 2011 12:35 AM
Last Post: mysteriousmyster
[Delphi] by PhoenixAISep 22, 2011 03:05 AM 3 608 Sep 22, 2011 03:05 AM
Last Post: moundown