I have links like this:
click c
You can access the event from onclick like this:
go
and at your javascript function, my advice is adding that first line statement as:
function yourFunc(e) { e = e ? e : event; }
then use everywhere e as event variable