The problem:
I have three boxes type text and when the user press <TAB> from the 
first box the focus should appear in the third box. The problem is that 
appear once and then the point goes to the second (this box should be 
unreachable). After this, I can write in the disabled box and the 
pointer never appears in the third box. The related code for this page is:

<html>
    <head>
       <title>Problem with focus()</title>
       <script language="JavaScript">

          function putfocus()
          {
             document.oForm.w_text3.focus();
          }

       </script>
    </head>
    <body>
       <form name="oForm" action="#" target="_top" method="post">

          Input box:<input type="text" name="w_text1" value="">
          &nbsp;&nbsp;&nbsp;&nbsp;Disabled box:<input type="text" 
name="w_text2" value="Disabled" onfocus="JavaScript:putfocus();">
          &nbsp;&nbsp;&nbsp;&nbsp;Input box:<input type="text" 
name="w_text3" value="">

       </form>
    </body>
</html>


It is not a solution to put "disabled" in the the second box, because I 
need to redirect the focus to a different box.
Could someone help me ?

Thanks before hand
Alejandro



Reply via email to