alternate between two functions on click
<p>How do I alternate between calling two functions on click? For example, here is the button</p>

<pre><code>&lt;div id="fooButton" /&gt;
</code></pre>

<p>and here is the javascript</p>

<pre><code>function fooOne() {
     alert('foo One called');
}

function fooTwo() {
     alert('foo Two called');
}
</code></pre>

<p>how do I call fooOne() and fooTwo() on alternate button clicks?</p>
