I have 5 anchor tags on my page. Now when one of these tags gets clicked I want to call a JavaScript function, in this function I need to find out which of the anchors was clicked.

How can this be handled?  

I want to do it in pure JavaScript or with dojo.