Click to See Complete Forum and Search --> : input element index


lingra
08-21-2003, 05:42 PM
is there away in javascript to determine the index of the element that has focus?

as in the following statement, I want a way to know the value of index.

document.forms[0].elements[index]

what I want to do is to determine where I am and then increment the index and move focus to that next element.
:(