How to connect between ASP.NET page and javascript
<p>I'm trying to put current time on ASP.NET page. How can i get the control ID from Javascript? I'm using C# ASP.NET  </p>

<p>On my Form</p>

<pre><code>&lt;body onload="updateClock(); setInterval('updateClock()', 1000 )"&gt;
    &lt;form id="form1" runat="server" &gt;
       &lt;span id="clock"&gt;&amp;nbsp;&lt;/span&gt;
   &lt;/form&gt;
&lt;/body&gt;
</code></pre>

<p>Javascript Function</p>

<pre><code>function updateClock ( )
{
   document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
</code></pre>
