How do I change function after clicking buttons in JavaScript?
<p>If I have three functions A(),B(),C()</p>

<pre><code>&lt;input type="button" value="text"  id="Button" onclick="A()"&gt;&lt;/input&gt;
</code></pre>

<p>What should I write in function A() to make it into</p>

<pre><code>&lt;input type="button" value="text"  id="Button" onclick="B()"&gt;&lt;/input&gt;
</code></pre>

<p>after I click the button. </p>
