I would like to trigger an event when a link clicks, clicking on it in normal mode or opening it in a new tab (e.g. middle click, Ctrl + click, etc.)
I tried the following:
$('a').click(myfunc) Does not capture medium clicks.
$('a').mousedown(myfunc) works, but it seems to prevent linking, although my function does not call event.preventDefault .
Any ideas how to do this?
javascript jquery firefox events
Greg
source share