title: IE 11 DispatchEvent
body: <p>We have a datepicker (in JavaScript) that has a section for checking IE 8 and older and other modern browsers.</p>
  
  <pre><code>if(-1 != navigator.userAgent.indexOf("MSIE")){
  obj_caller.target.fireEvent("onchange");
  }
  else {
  var evt = document.createEvent("HTMLEvents");
  evt.initEvent("change", false, true);
  obj_caller.target.dispatchEvent(evt);
  }
  </code></pre>
  
  <p>It's working fine in Chrome, Firefox, IE8 and below but is failing in IE 11. What I need is a way to get the else part working in IE 11. I just cannot figure out what is failing and how to fix it.</p>
  
  <p>Thanks.</p>