Submitted by prashant_agr on Wed, 2007-05-16 08:28.
Let's suppose you want the user to go directly to the following form. Notice that we set the names for the form and the field.
name:
email:
We can set the focus immediately by adding an onLoad attribute to the tag. Notice that the word focus must be followed by open and close parentheses: ():
Re: How to automatically put the cursor in a field in Html form?
Let's suppose you want the user to go directly to the following form. Notice that we set the names for the form and the field.
name:
email:
We can set the focus immediately by adding an onLoad attribute to the tag. Notice that the word focus must be followed by open and close parentheses: ():