JavaScript problem with Netscape

From: Josh Marcus <jxm_at_berkeley.edu>
Date: Mon Sep 20 2004 - 14:55:53 PDT

Webnet,

We are trying to use JavaScript to set the focus on a form input
element. We are finding that the following code does not work in
Netscape (versions 6.2 and 7.1). The behavior we see in Netscape is that
the user is advanced to the next field regardless of which field we
specify to receive focus. In the code below, we want the cursor to move
from Field One to Field Three. Instead, the cursor moves to Field Two.

The code works fine in Mozilla Firefox 1.0PR and IE 6.

________________________
<script language="javascript">
function changeFocus() {
     document.formOne.fieldThree.focus();
}
</script>

<form name="formOne">
Field One: <input type="text" name="fieldOne" onChange="changeFocus()"> <br>
Field Two: <input type="text" name="fieldTwo">
<br>
Field Three: <input type="text" name="fieldThree">
</form>
________________________

Can anyone identify a problem with this code? Anyone seen this before?

Thanks,
Josh
-----------------------------------------------------------------------
The following was automatically added to this message by the list server:

Webnet information is available at http://webnet.berkeley.edu. Email sent to this list is archived at http://ls.berkeley.edu/mail/webnet/ . This archive is open to the general public and browsable by search engine spiders, email-address harvesting robots, your bosses, etc.
Received on Mon Sep 20 14:56:45 2004

This archive was generated by hypermail 2.1.8 : Mon Sep 20 2004 - 14:56:45 PDT