How to handle a clicked link in JavaScript?
<p>How can I handle a link which doesn't have an id? It just has a classname like "classbeauty".</p>

<p>Now I need to know if a user has clicked the link.
If the link is clicked I just need to call <code>alert("yes link clicked");</code>.</p>

<p>I don't know how to handle events in JavaScript. </p>

<p>How can I do that? </p>
