Nodejs Utililty Methods HTML Element Event Trigger

List of utility methods to do HTML Element Event Trigger

Description

The list of methods to do HTML Element Event Trigger are organized into topic(s).

Method

triggerEvent(eventName)
Element.prototype.triggerEvent = function(eventName){
  if (document.createEvent)
    var evt = document.createEvent('HTMLEvents');
    evt.initEvent(eventName, true, true);
    return this.dispatchEvent(evt);
  if (this.fireEvent)
    return this.fireEvent('on' + eventName);
...