calling javascript function from code behind
<p>I am trying to call a javascript function from code behind on the button click event. below is my javascript code.</p>

<pre><code>  ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "strScript", "javascript:clearBox();", true);
</code></pre>

<p>and the function is</p>

<pre><code>&lt;script type="text/javascript"&gt;

function clearBox() {


    alert("Test");

}
&lt;/script&gt;
</code></pre>

<p>I get an error "Object expected"</p>
