Hi.
I have a function to submit the form when my user types any character
on a textbox. I call the function on the keyup event of the textbox.
The function submits the form and set the focus on the textbox, after
the submit. The form submits ok, but after the submit the focus won't
return to the textbox. Can anyone help me to solve that problem?
That's the function:
<Script language='Javas cript'>
function checkaddress(tx t)
{
if (txt.value.leng th == 1) {
document.Form1. optAdd.checked= true;
document.Form1. submit();
txt.focus(); }
else { return false; }
}
</Script>
Thanks,
Robert Scheer
I have a function to submit the form when my user types any character
on a textbox. I call the function on the keyup event of the textbox.
The function submits the form and set the focus on the textbox, after
the submit. The form submits ok, but after the submit the focus won't
return to the textbox. Can anyone help me to solve that problem?
That's the function:
<Script language='Javas cript'>
function checkaddress(tx t)
{
if (txt.value.leng th == 1) {
document.Form1. optAdd.checked= true;
document.Form1. submit();
txt.focus(); }
else { return false; }
}
</Script>
Thanks,
Robert Scheer
Comment