Thread
:
JavaScript events are really just function references?
View Single Post
11-14-2010, 12:27 AM
PM User
|
#
5
Old Pedant
Supreme Master coder!
Join Date: Feb 2009
Posts: 23,248
Thanks: 59
Thanked 3,999 Times in 3,968 Posts
Yes, well said, Hoo. And if you think of it that way, you won't make the mistake of trying to invoke the event handler by doing
Code:
objectReference.onclick()
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant
View Public Profile
Find More Posts by Old Pedant