How to check which link is clicked using Javascript?

There are several ways to check which link is clicked . I will share the code with example. CASE 1 In this case you just to need to call anchor tags by their class...