How to display a function in javascript?
<p>I just want to make this int visible on my page.  </p>

<p>I have this function in my script area</p>

<pre><code>function showCount()
{
var count = document.getElmentById('friend') 
      count.style.visibility = 'visible'
      count.innerHTML = dDone.toString()
  }
</code></pre>

<p>at the end of my webpage I have </p>

<pre><code>&lt;div id="friend"&gt; 
&lt;/div&gt;
</code></pre>

<p>Also in my body tag I have</p>

<pre><code>body onload="showCount()"
</code></pre>

<p>--</p>

<pre><code>var qDone = 0
</code></pre>

<p>is above the functions.
I don't understand why it is not showing. </p>
