Alejandro Romero wrote:
> OS: Windows 2000 Professional
> Navegator: Mozilla 1.0 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 
> rv:1.0.0) Gecko/20020530
> 
> 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:
> 

If you *never* want users to be able to enter text in the second box 
would it not be better to make it a textarea rather than an input?

> <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
> 
> 


-- 
The day Microsoft stop making products that suck will be the day they
start making vacuum cleaners.

Anti-spam e-mail address, sorry for the inconvenience


Reply via email to