[Javascript] Textbox Highlighting

Dave Stoltz dstoltz at shh.org
Tue Dec 9 11:40:39 CST 2003

Thank you all!!!


From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Dan Costea
Sent: Tuesday, December 09, 2003 12:15 PM
To: [JavaScript List]
Subject: Re: [Javascript] Textbox Highlighting

you can use the .focus () and .select () methods of the INPUT object. For
<input name="lala" value="text..."/>
 var txtTest = document.all["lala"];
 txtTest.focus ();
 txtTest.select ();

----- Original Message ----- 
From: Dave Stoltz <mailto:dstoltz at shh.org>  
To: '[JavaScript List]' <mailto:javascript at LaTech.edu>  
Sent: Tuesday, December 09, 2003 7:08 PM
Subject: [Javascript] Textbox Highlighting

How can I set focus to a form textbox, and highlight the text in the box (so
the user doesn't have to highlight with the mouse)???


Javascript mailing list
Javascript at LaTech.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20031209/a9bb6c47/attachment.htm>

More information about the Javascript mailing list