niner
asked on
Javascript object onClick reference another object's onclick
In Java script, when I click on an object, it calls a function. But I actually need to run the function of another object because it passes the 'this' property of the object (I believe it's a DIV if that matters. So, when I click on object A, can I call object B's event?
ObjectA onClick=(ObjectB(onmouseup ="DoSometh ing(this)" )
Can I do that? Or, how can I get the 'this' of objectB to objectA's event?
Thanks in advance
ObjectA onClick=(ObjectB(onmouseup
Can I do that? Or, how can I get the 'this' of objectB to objectA's event?
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
DoSomething(document.getEl ementById( 'ObjectBid ').value)
ASKER