title: TypeError: namefunction is not a function
body: <p>Following my code:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input id="test" onkeydown="test();" type="text"/&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>function pl(id){
      return id;
  }
  
  function test(){
   id = "test";
   alert(pl(id));   
  }
  </code></pre>
  
  <p>Why the browser return <code>TypeError: test is not a function</code>?</p>