Preserved Topic: Set foccus on textbox.. (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Helsingborg, Sweden |
posted 03-05-2002 16:31
I have made a webpage with a textbox but I need focus to be set on the |
Maniac (V) Inmate From: out of a sleepy funk |
posted 03-05-2002 17:58
<body onLoad="self.focus();document.formname.fieldname.focus()"> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-05-2002 20:42
Beware: if there are multiple text boxes on the page, and the user has a slow modem and they start typing before the page has fully loaded, and they're on another text box when the page finishes loading, their text will suddenly start appearing in the first text box, and it will make them mad. Try this to avoid that issue: |
Maniac (V) Inmate From: out of a sleepy funk |
posted 03-05-2002 21:11
you're such a stud Slime, where you come up with all this tuff?! Thanks =) |
Maniac (V) Mad Scientist From: New California |
posted 03-06-2002 00:50 |
Maniac (V) Mad Scientist From: the bigger bedroom |
posted 03-06-2002 00:55
heh - for a more generic version to plug in anywhere, you can try: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-06-2002 01:54
Yeah, but they keep fooling around and avoiding their work... |
Maniac (V) Inmate From: out of a sleepy funk |
posted 03-06-2002 02:24
hmmmm |
Maniac (V) Mad Scientist From: New California |
posted 03-06-2002 07:10 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 03-06-2002 07:15
Watch it for long enough, JK, and one of them won't hit it. Just keep watching for 20 minutes or so, and don't blink, and you'll see it. Really! |