Closed Thread Icon

Preserved Topic: OnLoad set focus to a input text field Pages that link to <a href="https://ozoneasylum.com/backlink?for=18558" title="Pages that link to Preserved Topic: OnLoad set focus to a input text field" rel="nofollow" >Preserved Topic: OnLoad set focus to a input text field\

 
Author Thread
Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 04-25-2002 13:28

How can I set the focus to an input text field when
the site is loaded?

I found only OnFocus with JS but that isn't that
what I am looking for....

cu
~Xdreamer.ch~
-------------------------------
to stupid for transparent sigs

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 04-25-2002 14:16

onload="document.theform.thefield.focus();" might work.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 04-25-2002 14:16

why isnt that what you are looking for?

just out of brain i'd say:
in your body tag write: onload="mytextfield.focus()"

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-25-2002 14:19

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 04-25-2002 15:43

ÄÄÄHM....yeah thx guys.

cu
~Xdreamer.ch~
-------------------------------
to stupid for transparent sigs

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-26-2002 06:51

I'm moving this from Server-Side Scripting to the DHTML/JavaScript board...


« BackwardsOnwards »

Show Forum Drop Down Menu