How to Handle a clicked link in Javascript?

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-04-25T20:58:05Z Indexed on 2010/04/25 21:03 UTC
Read the original article Hit count: 195

Filed under:

How can i handle a link which doesn't have a id, it just has a classname like "classbeauty".

Now i need to know if a user has clicked the link. If the link is clicked i just need to call the alert("yes link clicked");

I don't know how to handle events in Javascript.

How can i do that?

© Stack Overflow or respective owner

Related posts about JavaScript