[thelist] Selecting text in a form text box (automatically)

Jeff jeff at lists.evolt.org
Fri Sep 29 19:21:21 CDT 2000


michael,

:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Michael Galvin <mpgalvin at eircom.net>
:
: The easiest way to do this would be to select the
: contents of the text box when entering it.
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

in your form element:

<input
  type="text"
  name="username"
  onFocus="this.select()">

good luck,

.jeff

name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:jeff at members.evolt.org





More information about the thelist mailing list