Click to See Complete Forum and Search --> : Blured TextField?


said_fox
04-27-2003, 02:53 PM
Hi,
How can I make the keyboard TAB key, able to make the pointer jumping through text fields,
Where one of them is Blured on Focus, i.e ...onFocus="this.blur()"....
as the following example illustrates:

<form>
<input type="text">
<input type="text" onFocus="this.blur()">
<input type="text">
<input type="text">
</form>

When you test this code you will notice that the tab keyboard key cannot move the pointer
from the second text field to the third.
So I need to solve this problem. Please Help me :)

pyro
04-27-2003, 03:25 PM
I'm not sure what it is that you are trying to achive. Of course if you have a this.blur() in an onfocus, you are not going to be able to focus on that particular field...

said_fox
04-27-2003, 05:33 PM
Try this code and try to press the keyboard tab ket. What I want, The cursor jump the the next unBlured field.
I don't want to use the mouse to place the cursor in each field.
I hope that you clearly understaood what I mean.

pyro
04-27-2003, 05:41 PM
This worked for me in IE6... It does not work in NN7, however...

<form>
<input type="text">
<input type="text" tabindex=-1>
<input type="text">
<input type="text">
</form>