title: added herf element not click-able
body: <p>I am trying to add a download element to the page. I click it using Greasemonkey.
  The new div has been added to the page but the download window is not opening.</p>
  
  <pre><code>     var iDiv = document.createElement('div');
       iDiv.id = 'block';
       iDiv.className = 'block';
       document.getElementsByTagName('body') [0].appendChild(iDiv);
       iDiv.innerHTML = '&lt;button class=button&gt; &lt;a href=' + link + ' target=_blank&gt; &lt;/button&gt;';
       document.getElementsByClassName('button') [0].click();
  </code></pre>