i have a form submitting to a seperate frame.
everything is working fine, but what i want to do is:
unset the users value in the text box.
the set the focus in the text box. so the user can type again.
all i have is a textbox and the user pushes enter to submit the form.
it's a chat thing.
so if you could help that would be great.
In the text box you could have :
<input type="text" onFocus="this.value=''">
And then if the page reloads, in the body tag have
or in the <form> tag:
Hope this helps
well, here is my problem, the page with the form on it doesnt get reloaded. and if i do an onSubmit='reset()' then it erases the value before it subits the form and the data is lost.