Needed to know some suggestions on how to add multiple functions for the same event on the same object without using libraries like core.js (which uses event listeners) or JQuery, Dojo…etc.
@Declan1991Aug 31.2008 — #Two options, one is to use window.addEventListener or window.attachEvent (you have to detect which), and the other is something like<i> </i>var element = /* get element */; var oldevent = element.onclick; if (typeof oldevent == "function") { element.onclick = function() { oldevent(); newfunction(); } } else { element.onclick = newfunction; } That can be changed into a generic function pretty easily.