Re: default cursor focus

From: "Jon Hanna" <jon@spin.ie>
> You're half-way through filling in the second field when the page finishes
> downloading, document.onload kicks in and the focus moves in the middle of
> your typing.
>
> Making the first form field the first item in the tab order is often, but
> not always, a good idea, but switching focus for no obvious (to the user)
> reason isn't.

True. And since javascript is a required to implement this
irritateUserByRefocusing(), there's no reason why the script can't check
where the focus is first before resetting it. Using a bit of logic like
"Well, if the focus is already on a form element, don't move it!" will
certainly be more useful to a visitor.

Received on Friday, 21 February 2003 09:41:28 UTC