title: javascript type not defined error
body: <p>Hi. Here is a snippet of my code. It is from an HTML form page:</p>
  
  <pre><code>Phone Number:&lt;input type="text" id="Phone" name="Phone" onkeyup="checkFirst();" /&gt;&lt;br /&gt;
  
  &lt;p id="rabbit"&gt;&lt;/p&gt; &lt;!-- for testing --&gt;
  </code></pre>
  
  <p>This is the input text field and I want to call upon my checkFirst function which is in the head section of the html, here is my <code>checkFirst</code> function</p>
  
  <pre><code>&lt;script type="text/javasciprt"&gt;
          document.getElementById("rabbit").innerHTML = "When";
          function checkFirst(){
              var numbers = 3; //document.getElementById("Phone").value.length;
              document.getElementById("rabbit").innerHTML="Hello";
  
              if (numbers &lt;= 3) {
                  document.Phone.focus();
              } else {
                  document.info_open.focus();
              }
          }
  &lt;/script&gt;
  </code></pre>
  
  <p>when i run this the, nothing happens to the element with the ip "rabbit". it does not change. I ran it with the chrome debugger and it showed in the right hand panel that I have a reference error under which it says:</p>
  
  <p>type: "not_defined"</p>
  
  <p>the error is on the line of the element for phone input, why am I getting this error? I thought i defined type as 'text'</p>