title: getElementsByName won't loop through entire array
body: <p>The following code executes on the press of a button. It works fine alerting one string of the getElementsByName array, but when introduced to a loop, it <strong>still</strong> only alerts the first string value, and nothing more:</p>
  
  <pre><code>function checkvals() {
  
  var input = document.getElementsByName('ModuleTitle', 'ModuleCode', 'BuildingName', 'Day');
  var i = 0;
  
  for (i = 0; i &lt;= input.length; i++){
  alert(input[i].value);
  }
  }
  </code></pre>