title: how to call a function on button click
body: <p>I want to create two buttons that perform separate functions.</p>
  
  <p><a href="https://i.stack.imgur.com/aMc92.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aMc92.png" alt="image"></a></p>
  
  <p>When <code>button_B1</code> is clicked, <code>Function_B1()</code> runs.</p>
  
  <p>When <code>button_B2</code> is clicked, <code>Function_B2()</code> runs.</p>
  
  <p>How do I call a function on a button click?</p>