I'm trying to use a script that disables all clicks. Here it is:
<script language="javascript">
function click() {
if (event.button==1 || event.button==2) {
alert("ALERT TEXT")
}
}
document.onmousedown=click
</script>
The only problem is that I don't want there to be an alert when the mouse is clicked. When taking out "ALERT TEXT" there is just an alert with no message, when I take the whole thing out, nothing works.
Anyone know of a way to accomplish this?