![]() Preserved Topic: Set foccus on textbox.. (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Helsingborg, Sweden |
![]() 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 |
![]() <body onLoad="self.focus();document.formname.fieldname.focus()"> |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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 |
![]() you're such a stud Slime, where you come up with all this tuff?! Thanks =) |
Maniac (V) Mad Scientist From: New California |
![]() |
Maniac (V) Mad Scientist From: the bigger bedroom |
![]() heh - for a more generic version to plug in anywhere, you can try: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Yeah, but they keep fooling around and avoiding their work... |
Maniac (V) Inmate From: out of a sleepy funk |
![]() hmmmm |
Maniac (V) Mad Scientist From: New California |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() 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! |