title: Javascript can't find element by id?
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Test javascript&lt;/title&gt;
  
      &lt;script type="text/javascript"&gt;
          var e = document.getElementById("db_info");
          e.innerHTML='Found you';
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="content"&gt;
          &lt;div id="tables"&gt;
  
          &lt;/div&gt;        
          &lt;div id="db_info"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I use <code>alert(e);</code> it turns up <code>null</code>.... and obviously I don't get any "found you" on screen. What am I doing wrong?</p>