[thelist] JS: assigning a function to an object question

Tom Dell'Aringa pixelmech at yahoo.com
Fri Aug 29 22:20:17 CDT 2003

Speaking of unusual questions...

I'm assigning a function to an object: (yes, it's an image)

img.onclick = functionA;

with an associated function:


Problem: I need to send 2 parameters to this function. I didn't think
you could do that (and when I tried I get a 'not implemented' thrown
anyway). Am I out of luck here or is there some way to do this?


http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday!
http://www.maccaws.com/ :: Group Leader
[Making A Commercial Case for Adopting Web Standards]

"That's not art, that's just annoying." -- Squidward

More information about the thelist mailing list