title: Two events on the same button with two click
body: <p>I need to create a button that works like this :</p>
  
  <pre><code>var i = true
  
  first click --&gt; var i = false
  second click --&gt; var i = true
  ....
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code> &lt;input type="button" value="test" onclick="stop(); start();" /&gt;
  </code></pre>
  
  <p>How can i specify theese functions in my JS document ?</p>