Click to See Complete Forum and Search --> : place cursor in <Input text field >
jitseschaafsma
10-06-2003, 05:36 AM
onfocus() selects the whole content of an input text field.
i just want to place the cursor before the first character of an inpt field.
How is this done?
thanks
Jitse
Dimitri
10-06-2003, 07:43 PM
I don't believe that's possible with Javascript. Sorry.
But, the question that comes to my mind is, why would you want to put the cursor before the existing text in the input field anyway?
Sorry I couldn't be more helpful.
Dimitri
By the way, select() is what selects the text in an text input field, not onfocus().
rotonta
10-04-2009, 11:31 AM
Well,
I found this on a search for something similar,
I see it old like hell, so no reason to explain how to do what the question is about,
still, I can not believe, that people make this question"why would you want to..."
BECAUSE Developer WANTS TO!!!
Do NOT ask this question every time somebody want smth you do not have any idea how to do it!!!