I'm familiar with handling a link with an id:
var a = document.getElementById("mylink");
a.onclick = function() {
alert("ok");
};
However, I'm now faced with a situation where I have 3 links within one class .lotsOfLinks and I need to handle each one similar to how I did with the Id.
Is there a more streamlined approach for this?
Appreciate your help.