Scott Andrew wrote this classic piece of JavaScript on creating Event Handlers back in 2001. It’s a great script. A classic piece of JavaScript.
Nowadays the addEvent() is considered harmful. I use Simon Willison’s version of this script ALL THE TIME. I find it’s the base script that I start with whenever I start a new script.
Once they annouce the new fix/replacement for this script, I’ll start using that. There are new offerings that are appearing out there, in response to that call. But until a rock-solid replacement is announced, I think I’llcontinue to use Scott’s or Simon’s script.
Tagged As Coding, Javascript
Comments are Open (0)
Posted at 07:45 AM