Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: moving the cursor position in form text boxes


Message #1 by Jon Edwards <jpedwards@b...> on Mon, 11 Mar 2002 11:24:32 +0000
Hi All,
Can someone help me.
Is there a way to move the cursor position to the end of the text in a text 
box in a form.
This is so that when I write text to a text box using 
'document.form.name.value=text' I can have the cursor at the end of the 
text rather than at the start so the user can add to the text without 
having to move the cursor to the end.

(Internet explorer puts the cursor at the end but NS and opera put it at 
the beginning)
Thanks for any help
Jon E

----------------------------------------------------------
Mr. Jon Edwards                  |   Tel:+44(0)1865-222329
Townsend Lab (Room 368)          |   Fax:+44(0)1865-222406
Molecular Immunology Group       |Mobile:+44(0)7973-221148
Institute of Molecular Medicine  |
John Radcliffe Hospital          |
Headley Way                      |
Oxford                           |
OX3 9DS                          |
----------------------------------------------------------
            Web:  http://www.dental-ifa.com/
----------------------------------------------------------


  Return to Index