This post originated from an RSS feed registered with Web Buzz
by Stuart Langridge.
Original Post: Corrected addEvent function
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Most of my unobtrusive DHTML scripts use the addEvent function, which has been copied from all over the place. The Opera people have very kindly dropped me a mail to tell me that it’s wrong; it uses the line
obj.addEventListener(evType, fn, true);
when instead that line should be
obj.addEventListener(evType, fn, false);
The “true” and “false” bits relate to [...]