This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I didnt see a Java Script area but if there is one please move this post into it for me.
I have a simple form
when the page reloads, it shows the text still in the texbox I was thinking of sending them to another page that may thank them for their input and assure them that someone is working on their request. I really just want the textbox to be blank after the user clicks submit. how do you use a onsubmit handler? [ August 01, 2007: Message edited by: James Hambrick ]
I take it then that you want it cleared after the submission? Using a mailto as a form submission target is rather a weird deal. Normally a submission causes a page refresh and so there is no native mechanism for an after-submit event.
You could try clearing the field in a timeout handler initiated by the onsubmit event, but I'm a bit uncomfortable with that solution as it could lead to a race condition.