Hi,

Sorry for posting this on LIH. I am not subscribed to LIP at present.

Take a look at the following code :

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">

<form name=frm>
<input type=text name=txt1 onChange="frm.txt2.focus();">
<input type=button name='btn1'>
<input type=text name='txt2'>
</form>

</BODY>
</HTML>


Here the requirement is that, when the user enters something in the
textbox 'txt1', 'btn1' should be skipped and he should be above to enter in
the textbox 'txt2'. 

With the above code the cursor is showing on 'txt2' but if I enter
anything nothing happens, since it looks as if it still goes to 'btn1'
and one more tab is needed to go to textbox 'txt2' and than enter data.
How this additional tab can be avoided. 

I even tried putting 

onChange="frm.txt2.focus();frm.txt2.select();"

No luck.

Any ideas.

Peace

--
Rajesh
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Linux Commands (#1)                            LOST #021

No consolidated command list. Do an ls for the following dirs:
/sbin, /usr/sbin               ... for system related commands
/bin, /usr/bin, /usr/local/bin           ... for user commands
/usr/X11R6/bin                      ... for X program commands

####<[EMAIL PROTECTED]>####################################
:


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to