I\'m calling a function, that builds a table which includes several links.
I want to check if a link has been clicked with right or left mouse.
I tried to ad
The html:
aaa
The javascript:
function mouseDown(e) { e = e || window.event; switch (e.which) { case 1: alert('left'); break; case 2: alert('middle'); break; case 3: alert('right'); break; } }
The demo.