First of all, for more ensured selection, you need to invoke both the focus() and select() methods for your text field. Second, you need to create an artifical delay before trying to set focus to your control.
Try something like this:
You need to pass the element id instead of a reference to the element in the function above, but you could rewrite it to take an object reference if you wanted to.
Hope this helps, Regards, Roy
[ July 11, 2006: Message edited by: Roy Ivar Moe ] [ July 11, 2006: Message edited by: Roy Ivar Moe ]
Joined: May 25, 2005
I try to figure out your problem. It seem the onChange event will only fired when an object is lost focus or onLostFocus or onBlur event was fired. May be you sould change the way you move the focus with call the onKeyUp event on your Text field object. This event will call when a keyboad key is up (release) and its mean the content was of your text field was changed. The HTML code may look like this: