Not working Javascript in any browser except IE
<p>I have following code..</p>

<pre><code>  &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  &lt;head runat="server"&gt;
  &lt;title&gt;Automatic Resize TextBox&lt;/title&gt;
  &lt;script type="text/javascript"&gt;
  function setHeight(txtdesc) {
    txtdesc.style.height = txtdesc.scrollHeight + "px";
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
  &lt;asp:TextBox ID="txtDesc" runat= "server" TextMode="MultiLine"  Onkeyup="setHeight(this);" onkeydown="setHeight(this);" /&gt;
   &lt;/div&gt;
   &lt;/form&gt;
   &lt;/body&gt;
   &lt;/html&gt;
</code></pre>

<p>This is a javascript for Resize the Textbox while writing in text box.means if textbox will fill completely then it will be expand automatically but if we remove the textbox then the textbox will be collapsed...its working fine in IE but not in other browser plz help me....</p>
