How to call javascript on user control
<p>I have webapplication in c# asp.net 4.0 </p>

<p>I have User Control in that I have written javascript :-</p>

<pre><code>&lt;script&gt;
    function SetValue() {        
        alert(document.getElementById('offSetClient').value);
    }
&lt;/script&gt;

&lt;asp:HiddenField ID="clientDateTime" runat="server" /&gt;
&lt;asp:HiddenField ID="offSetClient" runat="server" Value="Test"/&gt;
</code></pre>

<p>and this User Control added into a web form.
Please suggest me how can I call this javascript on User Control page load.</p>
