H houssam_ballout New Member Feb 12, 2007 #1 Hello all, How can I know in JavaScript the element that is calling the function? thanks
vetto89 New Member Feb 12, 2007 #2 you can know the id or the name just printing it like a.id or a.name.. but you have to call the function passing the element like function pippo(a) { alert(a.id); alert(a.name); } and the calling: <... onmouseover="pippo(this)" ....>
you can know the id or the name just printing it like a.id or a.name.. but you have to call the function passing the element like function pippo(a) { alert(a.id); alert(a.name); } and the calling: <... onmouseover="pippo(this)" ....>