List Info

Thread: Re: Liphp Digest, Vol 16, Issue 21




Re: Liphp Digest, Vol 16, Issue 21
country flaguser name
United States
2007-05-29 09:08:47
Ken,

I think this example has what you're looking for?

   http://www.lestercat.net/dev/javascript/focus_and_s
elect.html

And, the command you're looking for, from HTML source

   document.testForm.testTextArea.select();

Hope this helps.

 - Bill Sampson

_____

...
> Hi,
> 
> I've got a little trick in my code that sets focus to
the first control
> on the form, all well and good.
> 
> But I notice the cursor ends up out at the end of the
text, and the text
> is not highlighted.  Then when I tab to the next field
the text is
> highlighted.  I'd like to control these behaviors.
> 
> Can anybody tell me the general methods I'm looking for
to control this
> behavior in Javascript?  I don't know what to look up.
> 
> --
> Kenneth Downs
...

=
Bad Credit? No Problem - Credit Cards
We offer secured & unsecured VISA & Mastercards.
Apply online Now.
http://a8-asy.a8ww.net/a8-ad
s/adftrclick?redirectid=e1997aa374f394da618ac7ea7fccdc4d



_______________________________________________
Liphp mailing list
Liphpbuoy.com
ht
tp://www.buoy.com/cgi-bin/mailman/listinfo/liphp

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )