JavaScript "return false" from onkeypress handler
<p>I used code in the below method to block my keyboard and it worked for me.</p>

<pre><code>&lt;asp:textbox id="t1" onkeypress="return false;" /&gt;
</code></pre>

<p>Now I want to add some more for for it and I tired to do the same using extra code as</p>

<pre><code>&lt;script type="text/javascript"&gt;
fuction disablekeys()
{
return false;
}
&lt;/script&gt;
&lt;asp:textbox id="t1" onkeypress="disablekeys();" /&gt;
</code></pre>

<p>But this code is not working. Why?</p>
