applyEmuToAll adds the functions
addEventListener,
removeEventHandler,
and dispatchEvent
to the object you give it. For example:a = document.getElementById( "div1" );
a = applyEmulation( a );
a.addEventListener( 'click', alert, false )applyEmulation is nice and doesn't clobber the browser's native version (assuming it exists). applyEmulationForce ignores this and applies emulation anyway.| Browser | Platform | |
|---|---|---|
| Internet Explorer 5.2 | Mac OS X | NOT OK |
| Internet Explorer 6 | Windows | OK |
| Mozilla Firefox | Multiple | OK |
| Safari | Mac OS X | OK |