title: Changing the function of a button click?
body: <p>I know the answer is probably really obvious, but I'm having a complete brain fart here. </p>
  
  <p>What I want to do is have a simple form with two buttons. The first button shows a message saying "1". After clicking the second button, the first button says "2" when clicked. After clicking the second button again, it goes back to saying "1". </p>
  
  <p>Having learned programming with javascript, I'm still thinking in javascript. My first train of thought was:
      myButton.onclick=...</p>
  
  <p>After that the only thing I could think of was to have a conditional inside the first button's click function and use the second button's click to change a boolean...</p>
  
  <p>Is there a better way to do this?</p>