<form>
<input type="text" name="one" tabindex="1">
<input type="text" name="two" tabindex="2">
<input type="text" name="three" tabindex="3">
<input type="text" name="four" tabindex="4" onblur="this.form.elements['one'].focus();">
</form>
Doesn't help if the user hits SHIFT+TAB in the first form element however.
George Hester wrote:
[color=blue]
> Basically what I was trying to do I've given up. The idea was to determine what the tabIndex was upon tabbing through my controls on a form and hitting the address bar. I have 5 controls. 4 on the form and 1 on a link. So there are only 5 "elements" which get the tab. 0, 1, 2, 3 on the form and 4 is the link. I number them explicitly this way. But onkeydown over the 4th one, the link, sends control to the address bar. At that point I cannot capture onkeydown. onkeydown over the link is not captured (fired) when the key is the TAB and the place the cursor goes is the address bar.
>
> The trouble is my tabIndex seems to act inconsistently when the address bar is included in the mix.
>
> --
> George Hester
> __________________________________
> "rf" <making.it.up@the.time> wrote in message news:BSoIb.70900$aT.29739@news-server.bigpond.net.au...[color=green]
> >
> > "George Hester" <hesterloli@hotmail.com> wrote in message
> > news:eOeIb.20432$q55.3706@twister.nyroc.rr.com...
> > Thanks. That takes care of that. Using any other technology?
> >
> > What precicely are you trying to do?
> >
> > --
> > George Hester
> > __________________________________
> > "rf" <making.it.up@the.time> wrote in message
> > news:_o7Ib.69721$aT.20976@news-server.bigpond.net.au...[color=darkred]
> > >
> > > "George Hester" <hesterloli@hotmail.com> wrote in message
> > > news:Bz1Ib.12434$q55.4774@twister.nyroc.rr.com...
> > > When the address bar is highligted? That is nothing on the page is
> > > selected. The address bar is selected. Capture keydown or keypress? Any
> > > ideas using javascript? Thanks.
> > >
> > > Can't be done.
> > >
> > > Cheers
> > > Richard.[/color][/color][/color]
--
| Grant Wagner <gwagner@agricoreunited.com>
* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html
* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp
* Netscape 6/7 DOM Reference available at:
*
http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
*
http://www.mozilla.org/docs/web-deve...upgrade_2.html