|

Disabling the Left Click button
<script language="javascript">
function click() {
if (event.button==1) {
alert('You can not use mouse buttons here')
}
}
document.onMouseDown=click
</script>
Disabling both the Right and left Click
button
<script language="javascript">
function click() {
if (event.button==1 || event.button==2) {
alert('You can not use the mouse buttons here')
}
}
document.onMouseDown=click
</script>
Now, let's see
it in action.
Again, keep in mind that disabling someone's mouse buttons won't
necessarily keep them from copying your work. Also, this script
may not work on all browsers (Netscape comes to mind).
Lastly, like a friend of mine says, if you really want to protect
your work, the best solution is not to publish it. ;-)
Back
to intro...
|