This always seems like it ought to be a good idea but make sure you really want this because it means the user can only ever use backspace or type which if they make a typo at some point and have to delete all of what they have already done it can be a pain. It also stops the user being able to highlight any of the text and copy it which is very unhelpful in a lot of cases. However,
If you realy want to do this you will need a short bit of javascript that fires on the following events:
focus()
onKeyUp()
onMouseUp()
and to set the cursor to the end simply do:
this.value = this.value;
in the javascript event as this will set the text (of the box) to itself thus forcing the cursor to be reset to the end.