How to automatically put the cursor in a field in Html form?

Question

How to automatically put the cursor in a field in Html form?

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: ():