Hi,

I have a <a> calling a javascript function, but there will be several
<a> calling the same javascript function, and I want to know which <a>
calls it, I have assign different id attribute for each <a>, then I
don't know how to proceed ...

here is my html:

<a id="one" href="javascript:myEvent(this)">Caller One</>
<a id="two" href="javascript:myEvent(this)">Caller Two</>
<a id="three" href="javascript:myEvent(this)">Caller Three</>


here is my javascript

var myEvent = function(this){
    alert(this.id);
}

Well, this doesn't work for me, I hope you got what I mean.

Thanks in advance.

james

Reply via email to