- BRINGING IN SEPARATE PARAGRAPHS FROM WORD
- FOCUS YOUR ATTENTION RIGHT HERE
- WATCH OUT FOR KILLER OCTOTHORPES
- HEADING THIS WAY
- RESCALING AN IMAGE IN DREAMWEAVER
- QUICKLY CLEARING A PAG
- FINDING YOUR ASSETS IN A DARK ROOM (WITHOUT A FLASHLIGHT)
- EVERYBODY, COME ON AND DO DA COMBO, MON!
- CLOWNS TO THE LEFT OF ME, JOKERS TO THE RIGHT...
- ZIPPY FORM ORGANIZATION WITH THE FIELDSET TAG
- WHERE, OH, WHERE HAVE MY WINDOW SIZES GONE?
- STAYING IN GOOD FORM
- PLAYING NICE WITH THE INSERT BAR
- "A" IS FOR ACCESSIBLE APPLETS
- MULTIPLYING RADIO BUTTONS
- FANCY-SCHMANCY FORM BUTTONS
- LABEL-LICIOUS
- BUTTON, BUTTON, WHO'S GOT THE BUTTON?
- ANCHORS AWAY
- BYE, BYE HELPER TEXT
- THAT'S WHAT IT'S ALL ABOUT
- JAVASCRIPT REQUIRED
- TRANSFERING SITES
- NO MORE BROKEN LINKS
- REUSABLE JAVASCRIPT
- VIEW AS ROOT
- INITIALLY SELECTED VALUE
- REQUIRING INPUT
FOCUS YOUR ATTENTION RIGHT HERE
Here is a simple little JavaScript used to give a specific field focus in a form when the page is loaded so that the user can start filling out the fields right away. Right+click (Ctrl+click) the <body> tag in the Tag Selector in the lower left of the Document window if you're using Design view and choose Edit Tag (if you're in Code view, get ready to modify the <body> tag). Here's the code to add to the <body> tag:
Replace theFormName with the exact name of your form and theFieldName with the exact name of the field in which you want the cursor to be positioned when the page loads. When I say exact, I mean it; make sure the casing is identical.
By the way, if an onload event is already present, you should add only the portion between the quotes and not a second onload attribute. Remember that functions must be separated by a semicolon, so if you put this at the start of an existing onload event you should be just fine.