<script language="javascript"> function click() { if (event.button==2) { alert('Tilhører mig') } } document.onmousedown=click </script>