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://javascript.internet.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
Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.
