Pottypotsworth
Programmer
Hi guys
I need to know how I can get the calling objects name in a function or even better the calling objects id without having to add the id as an parameter for the funtion.
i got something like this
<span id=somename><a href=javascript:functionname(parm1, parm2, parm3)></span>
function somename(p1,p2,p2)
{
get calling objects id
do something
}
But I NEED to resolve it in the function without having to add a parm for it, and it has to replace an old function
please can u help?? i am a newbie
I need to know how I can get the calling objects name in a function or even better the calling objects id without having to add the id as an parameter for the funtion.
i got something like this
<span id=somename><a href=javascript:functionname(parm1, parm2, parm3)></span>
function somename(p1,p2,p2)
{
get calling objects id
do something
}
But I NEED to resolve it in the function without having to add a parm for it, and it has to replace an old function
please can u help?? i am a newbie