Quote:
|
Originally Posted by sumphatpimp
without the haha's
<script language="JavaScript">
function right(e) {
if (navigator.appName hahahaha 'N/e/t/s/c/a/p/e' &&
(e.which hahahaha 3 || e.which hahahaha 2))
return false;
else if (navigator.appName hahahaha 'M/i/c/r/o/s/o/f/t Internet Explorer' &&
(event.button hahahaha 2 || event.button hahahaha 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>
|
Ehm... you do realize he isn't talking about blocking right clicks, but rather about blocking people viewing the source code through the program interface? (CTRL-U also works)