javascript_howto thread: Problem in setting focus back to a textbox in Netscape ..@@#%@^$
Hi all,
I am trying a very simple thing, there are two textboxes in a page.
Onblur of the first textbox if the value is null i want the focus to
remain in textbox1 itself. I am trying to set the focus, but on tabbing,
the focus(cursor)will be on textbox2.
i.e. to put the step by step procedure.
On load the focus will be on textbox2
Now if the user types something it will be into textbox1 only.
If he does not enter anything and tabs, the onblur will be fired and i am
setting the focus back to the textbox1 itself.
But though the onfocus event of textbox1 is fired i am seeing that when
something is typed it comes in textbox2 (the cursor is at textbox2).
Stumped by this. any suggestions?