title: jQuery trigger('click') Not Working in Chrome
body: <p>I previously had the following</p>
  
  <pre><code>$('#refresh').click(function () {
          $('#fileUpload').trigger('click');
  });
  </code></pre>
  
  <p>However I've changed it so it should fire on a query parameter</p>
  
  <pre><code>function getParameterByName(name) {
      name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
      var regex = new RegExp("[\\?&amp;]" + name + "=([^&amp;#]*)"),
      results = regex.exec(location.search);
      return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
  }
  
  $(function () {
      var param = getParameterByName('upload');
      if (param == "yes") {
          $('#fileUpload').trigger('click');
      };
  });
  </code></pre>
  
  <p>It works in FireFox and IE but not Chrome. Any idea why?</p>