title: javascript display value in span tag
body: <p>in javascript, how can i assign and display a value to <code>tag</code>, so it appears in;</p>
  
  <p><code>&lt;span id=tag&gt;&lt;/span&gt;</code></p>
  
  <p>This needs to be set on the pageload.</p>
  
  <p>i thought it was something like:</p>
  
  <pre><code>&lt;script&gt;
  document.getElementById('tag').innerHTML = 0;
  &lt;/script&gt;
  </code></pre>