addEvent() considered harmful

Peter-Paul Koch is looking for ways around Internet Explorer memory handling bugs that under some circumstances are triggered by Scott Andrew LePera’s addEvent() cross browser event handler script. addEvent() considered harmful is required reading if you use this script and experience problems with Internet Explorer.

Posted on September 5, 2005 in JavaScript, Quicklinks


  1. I aways preferred to use the standard DOM2 event model: document.addEventListener() or Element.addEventListener. Unfortunately, support for has been lacking in IE. So, to address the problems with addEvent and the problem with IE in general, I implemented DOM 2 Events in IE.

Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.