code: function trigger (el, event) {
    if (document.createEvent) {
      var ev = document.createEvent('HTMLEvents')
      ev.initEvent(event, true, false)
      el.dispatchEvent(ev)
    } else {
      el.fireEvent('on' + event)
    }
  }
docs: trigger : trigger(el, event)
  Triggers an event `event`. Only works for native events.
  
  var trigger = require('dom101/trigger');
  
  el = document.querySelector('#button');
  trigger(el, 'click');