views:

501

answers:

2

is it possible to change tab/focus order in an html table so that it transfers vertically first and then horizontally?

+4  A: 

Look at the tabindex attribute.

deceze
+1. You'll also have to know/guess how many controls come before the table in the render order (e.g. a login form at the top of the page), and how many rows are going to be in the table (e.g. page size).
devstuff
+4  A: 

I suppose you have some kind of input elements in your table and on those you can set the tabindex attribute.

<TABLE>
<TR>
  <TD><INPUT NAME="Name" TABINDEX=1></TD>
  <TD><INPUT NAME="Age" TABINDEX=3></TD>
</TR>
<TR>
  <TD><INPUT NAME="Sex" TABINDEX=2></TD>
  <TD><INPUT NAME="Location" TABINDEX=4></TD>
</TR>
</TABLE>
Jonas Elfström
+1 good example
tuergeist