[thelist] Simple HTML form question

David Dorward evolt at david.us-lot.org
Mon Mar 3 16:18:02 CST 2003


On Mon, Mar 03, 2003 at 01:48:01 -0800, Aaron Cole wrote:
> Is it possible to have the cursor display in the text field on a search form
> when the page is first opened?

Word of warning: When the input grabs the focus any text in it gets
selected. This often leads to the following sequence of events.

Page starts loading
Input loads
User tabs to input and starts typing
Page finishes loaded
onload even triggers
Text in input gets selected
User types over the text they just entered
User curses

It gets worse with multiinput forms as the user starts entering the
data they want to put in the (e.g.) 4th field over the data they
entered in to the first.

--
David Dorward                                   http://david.us-lot.org/
"You cannot rewrite history, not one line."
                                      - The Doctor (Dr. Who: The Aztecs)



More information about the thelist mailing list