title: onclick added with Tampermonkey is not calling the function?
body: <p>If I create a div programmatically with Tampermonkey:  </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div onclick="myfunc()"/&gt;
  </code></pre>
  
  <p>script:</p>
  
  <pre><code>function myfunc() { alert("clicked"); }
  </code></pre>
  
  <p>then click on the div; <code>myfunc</code> is not called in my script. </p>
  
  <p>How can I get this to work?</p>
  
  <p>(I use TM/jQuery to add the div to a page and I would like to attach some functionality to it. I assume I have to redirect the function call in the HTML to the proper place. I also use <code>GM_</code> functions so I can't just insert the code directly.)</p>