title: trigger an automatic download from javascript doesn't work on page load
body: <p>I have used the download attribute of a link to download a file. However, when I trigger the click event from another method, it doesn't download the file. Why is that so? I have checked that the click event is being triggered. Here's my test on jsfiddle - <a href="http://jsfiddle.net/6Fkb5/1/" rel="nofollow">http://jsfiddle.net/6Fkb5/1/</a></p>
  
  <pre><code>&lt;a href="#" download="https://www.dropbox.com/s/shd31hvnsn0fd0v/Getting%20Started.pdf" id="testdownload"&gt;Test Download&lt;/a&gt;
  
  var count=0;
  $('#testdownload').on('click', function(){
      count++;
      $('#log').append('&lt;li&gt;Click triggered ' + count + ' times&lt;/li&gt;');
  });
  
  
  $('#testdownload').trigger('click');
  </code></pre>