llp00na
04-29-2006, 03:27 PM
well, i am setting up a controlled experiment. I will need to disable both left and right mouse clicks.
I have tried :
<SCRIPT LANGUAGE="javascript">
function click() {
if (event.button==1 || event.button==2) {
alert('No clicking!')
}
}
document.onMouseDown=click
</SCRIPT>
But it doesnt work, can someone please provide advice. Thanx
I have tried :
<SCRIPT LANGUAGE="javascript">
function click() {
if (event.button==1 || event.button==2) {
alert('No clicking!')
}
}
document.onMouseDown=click
</SCRIPT>
But it doesnt work, can someone please provide advice. Thanx