I have an input box with some text inside. Now if a user jumps to that input box useing tab the whole text is selected. Thus if a user would start writing s/he would overwrite the text. However I would prefer the cursor to being set to the start of the text instead of selecting all the text.

Any ideas how to do this with javascript?