Return to Snippet

Revision: 14223
at May 25, 2009 07:12 by pollux


Initial Code
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);
}

Initial URL
http://www.howtocreate.co.uk/tutorials/javascript/domevents

Initial Description
IE doesn't follow the W3 specification about DOM Events

Initial Title
Fire an Event manually on IE > 5

Initial Tags


Initial Language
JavaScript