javascript - call a event from another element
<p>I have <code>button A</code> with </p>

<pre><code>onclick = "alert(1);"
</code></pre>

<p>And <code>button B</code>.</p>

<p>How to do, when I click on <code>button B</code> , it should call event on <code>button A</code> ?</p>

<p>click B -> eventB -> eventA </p>
