Form Field Focus
Date created
27 October, 2005
Date last modified
27 October, 2005
Visit the discussion

Form Field Focus

The JavaScript on this page attempts to focus the first form field once the page has loaded. However, if any content has been added to the other form fields it doesn't try to focus, so you don't get the user typing into the wrong field midway through a repsonse.

Even better, in Internet Explorer if the user has merely focused on another field, the script will not try to re-focus the cursor.

The form field focus script is available in a modular script that you can insert at the top of your webpages.

Submit top secret espionage
Wallpaper of the World as hexagons This image is here to simulate a long page load.