Possible Duplicate:
Javascript: Move caret to last character
I have a standard textarea with some text in it. I'm looking for a way to have the cursor automatically be placed at the end of the existing text so a user can simply start typing to add more text. This should happen whenever the textarea becomes active such as when a user tabs into it. Any ideas?
window.setTimeout
fixed the problem in Chrome? It worked for me but I don't understand the logic behind – Boner