Form Focus
General
This snippet places the cursor in a selected form field upon page load. It uses the ID attribute, making it easy to target any field, regardless of form changes. Easy to add to any form.
Notes
- Created by: Lee Underwood
- Web Site: http://www.javascriptsource.com/
- Posted: August 20, 2008
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: formFocus.js
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document


Leave a Response
(1 comment)Hi,[br /][br /]I looked at many of these but this was the easiest and cleanest to use. Top hole old bean!