title: How can I toggle a onclick="function" for a button
body: <p>I have a button that plays and stops a video.  How can I toggle between the .play() and .pause() efficiently? </p>
  
  <pre><code>&lt;button id="thebutton" onclick="BV.getPlayer().play();"&gt;&lt;/button&gt;
  </code></pre>