I'm attempting to build a library of custom elements that are deveride from various standard elements. For example, I created a rollOverImage element from an img element. It all works great until it gets to event handling. There doesn't seem to be an easy way to assign an event to a method with javascript. I can route an event to a function with addEventListener(), but then I loose the 'this' object. With IE i solved this problem by making global functions for my events and tying global window events to them. The functions themselves called the handler of the event.srcElement. This however is not possible in Firefox or other browsers because there is no event object. So basically what I want to do is tie an event to a method within my custom class. I also need to be able to use the 'this' keyword within the method. If any one can come up with a clever solution that would be awesome!