How can I determine which HTML element called a JavaScript function?

lee_lee07770

New member
I'm trying to create something dynamically...
I have a bunch of href tags calling the same function.
Each tag has its own ID.
When the JavaScript function is called, I want it to perform some task depending on
what element called the function.
So inside the function I'm going to say something like (pseudocode):
if (the element who called this function has an id of....(or) if the element with this id is selected...)
do some task
else if (etc...)

Is this possible? Please help with ideas if you can! Thank you!!! :) :)
 
Back
Top