frontline
12-08-2002, 03:19 PM
Hello
simple question (i think) .is there any way in js when i give a function the parameters something like this:
< input type="text" name="foo1" id="foo2" value="foo3" onclick="MyFunc(this.name,this.id,this.value) >
now in the MyFunc(x,y,z) is there any way to know that the this.name is coming from the "name" property of the <input type="text">
and the this.id is coming from the "id" property of the <input type="text"> and so on .. this is in case i pass the args this way.
i mean beside the values of the properties i need to know the property type/name it came's from .
hope i made my self clear
thanks
simple question (i think) .is there any way in js when i give a function the parameters something like this:
< input type="text" name="foo1" id="foo2" value="foo3" onclick="MyFunc(this.name,this.id,this.value) >
now in the MyFunc(x,y,z) is there any way to know that the this.name is coming from the "name" property of the <input type="text">
and the this.id is coming from the "id" property of the <input type="text"> and so on .. this is in case i pass the args this way.
i mean beside the values of the properties i need to know the property type/name it came's from .
hope i made my self clear
thanks