title: getElementById and null - why?
body: <p>Why doesn't this code work? I'am using FF.</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
  
  document.getElementById("someID").onclick = function(){
      alert("Yahooo");
  }
  &lt;/script&gt; 
  &lt;/head&gt;
  
  &lt;body&gt; 
  &lt;a href="#" id="someID"&gt;someID&lt;/a&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm getting javascript error getElementById equals to null.</p>