I have an asp:textbox
and when a user clicks the \"Cancel\" button, I want to erase w
renders to an which you can use as you would, the only complication is the
id=""
attribute is rewritten, but you can do this:
document.getElementById("<%= NewName.ClientID %>").value = "";
Assuming that this script is in the same page as the textbox. If this is in a referenced then you'll need to use a global script variable of the element's ID.