title: How to trigger click event of a button in Canvas by using JavaScript?
body: <p>I googled this topic during hours but I couldn't get any answer. I'm trying to trigger click event of a button in Canvas. The source code looks like below:</p>
  <pre><code>&lt;body&gt;
  &lt;div class=&quot;webgl&quot;&gt;
      &lt;div id=&quot;unity&quot;&gt;
          &lt;canvas id=&quot;canvas&quot;&gt;&lt;/canvas&gt;
      &lt;/div&gt;
  &lt;/div&gt;&lt;/body&gt;
  </code></pre>
  <p>I cannot reach the button element. I don't know that there is a solution. Can you help me please ?</p>