How can I set the focus to a certain element in a form using JavaScript?
<p>My page has a form that has a text field in it. I'd like to set the focus to that text field as soon as the page loads, so that users do not have to click it to start typing. How can I do this?</p>
