Within callback functions, you might want to access details of the event that triggered the callback, such as the source element.
For standards compliant browsers, such as Firefox, you can set your callback to have an argument, which will be populated with the event object that triggered the callback. For IE, you should test if this argument is null, and if it is, set it to ‘window.event’. In IE, you can also use a proprietary function called attachEvent() to add events to objects, in this case the first callback argument will be populated with the event as normal.
Additionally in a callback function, you might be interested in looking at the object that triggered the event. In Firefox and other standards compliant browsers, the ‘this’ variable is populated with the object that triggered the event. Again, this is not the case in IE, instead the source element is referenced through event.srcElement.