title: Creating a reset button for display
body: <p>I was wondering if anyone would be able to assist with creating a button that will reset my display? I have opted to include it as a function derived from an onclick:    </p>
  
  <pre><code>function setup() {
      var i;
      for (i = 0; i &lt;= 9; i++) {
          document.getElementById(i).onclick = handleInput;
          document.getElementById("*").onclick = handleInput;
          document.getElementById("/").onclick = handleInput;
          document.getElementById(".").onclick = handleInput;
          document.getElementById("-").onclick = handleInput;
          document.getElementById("+").onclick = handleInput;
  
          var evaluate;
          document.getElementById("=").onclick = evaluateInput;
  
          var clear;
          document.getElementById("c").onclick = clearInput;
          value = "reset"
      }
  }
  function handleInput(e) {
      var s = document.getElementById("display").childNodes[0];
      s.nodeValue += e.srcElement.childNodes[0].nodeValue;
      console.log(e.srcElement.id);
  
  }
  function evaluateInput(e) {
      var s = document.getElementById("display");
      s.innerHTML = eval(document.getElementById("display").childNodes[0].nodeValue);
  
  }
  function clearInput() {
      document.getElementById("display").childNodes[0].selectedIndex = 0;
  }
  </code></pre>
  
  <p>Thanks!</p>