Resetting textbox text via javascript
<pre><code>function clickButton(e, buttonid)         
            var evt = e ? e : window.event;
            var bt = document.getElementById(buttonid);
            if (bt) {
                if (evt.keyCode == 13) {
                    bt.click();                                                  
                    return false;
                }
            }
        }

txtChatMessage.Attributes.Add("onkeypress", "return clickButton(event,'" + btnSendChat.ClientID + "')");
</code></pre>

<p>this function is an attribute that is set in code behind file. How do I reset the text in textbox after the button click fires</p>
