/ Published in: JavaScript

IE doesn't follow the W3 specification about DOM Events
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var srcElement = document.getElementById('source'); if(document.createEventObject) { var ev = document.createEventObject(); //event object can define common properties (see the URL) //1st param: event type fired, 2nd event object srcElement.fireEvent('onclick', ev); }
URL: http://www.howtocreate.co.uk/tutorials/javascript/domevents
Comments
