Check out the JavaScript methods, onblur() and either focus() or
setfocus(). You can find the JavaScript 1.3 API at
developer.netscape.com.
You could do something like:
<body onload="document.form.firstText.focus()">
<form name="form">
<input type="text" name="firstText"
onblur="document.form.nextInput.focus()" />
Of course, this is going act really strange if your user uses the
mouse instead of the tab key. :-)
Cheers!
Mark
----- Original Message -----
From: "Ramesh, Kesav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2001 5:55 AM
Subject: Re: tabbing out of a control...
> Hi,
>
> use key listener and try to trap tab key function.
>
>
> Regards
>
> Ramesh Kesavanarayanan
>
> Electronic Data Systems
> Steeple Reach,
> 25, Cathedral Road,
> A SEI-CMM® Level-3 Organization
> 91-44-811 3801 to 15 ext :2186
> 91-44-233 0380 (res)
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Happiness is easy but learning not to be unhappy is difficult
>
>
> -----Original Message-----
> From: purnima das [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 13, 2001 12:12 PM
> To: [EMAIL PROTECTED]
> Subject: tabbing out of a control...
>
>
> hi,
>
> the problem that i am facing is pretty simple, i have a servlet
that is
> currently generating an HTML page, the page in turn has few
controls like
> some labels and textfield....! i am using HTML, JavaScript, and
Servlet
> ofcourse.....! my problem that i am facing is when i tab out of
the first
> control (i.e. the first textfield), the cursor instead of going
to the
> second control (i.e. the second textfield), it goes back to the
link that
> invoked this servlet,....!
>
> i want my tab to move in sequece with the controls present on
this page, how
> do i acheive it, ...?
>
> have a good day
> purnima
>
> _____________________________________________________
> Chat with your friends as soon as they come online. Get Rediff
Bol at
> http://bol.rediff.com
>
>
_________________________________________________________________
__________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
_________________________________________________________________
__________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html