Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with tab order

Status
Not open for further replies.

moepower

Programmer
Oct 5, 2000
93
US
If I have a table with four fields and three buttons (clear, back, next). Is there a notab command or how do I go about leaving the "clear" and "back" button out of the tab order? My partial code is below:

<tr>
<td>field1
<td>field2
<td>field3
<td>field4
</tr>

<tr>
<td colspan=4>
<a href=&quot;#&quot;><img src=&quot;/clr.gif&quot; onClick=&quot;reset();&quot;></a>
<a href=&quot;javascript:history.go(-1)&quot;><alt=&quot;Back&quot;></a>
<input type=&quot;image&quot; onclick=&quot;return valid(document.forms[0,0],this;&quot;>
</td>
</tr>

Thanks
 
In IE4.0+ you can set the tabindex equal to -1... This won't work in Netscape though.

ex: <input type=&quot;button&quot; value=&quot;Clear&quot; tabindex=&quot;-1&quot;>
 
Thanks for the hint. Also, I tried setting tabindex for <input type=&quot;text&quot;...> along with the <input type=&quot;button&quot;...>, but both IE and NS do not seem to follow the tabindex I set. Is this because I can't set tabindex for text fieds?

Thanks,
 
You should be able to set the tabindex for text fields... Post the code you're using and we'll take a look at it.
 
If I have a form with two text fields and three buttons with the code below. Why won't NS allow me to tab to the Submit button?

<INPUT Tabindex=&quot;1&quot; TYPE=&quot;text&quot; NAME=&quot;firstName&quot; SIZE=&quot;30&quot; VALUE=&quot;<%= (useUserInfo) ? qDta.userFName : qDta.parentFName %>&quot;>
<INPUT Tabindex=&quot;2&quot; TYPE=&quot;text&quot; NAME=&quot;lastName&quot; SIZE=&quot;30&quot; VALUE=&quot;<%= (useUserInfo) ? qDta.userLName : qDta.parentLName %>&quot;>

<a href=&quot;javascript:document.forms[0].reset();&quot; tabindex=&quot;-1&quot;><img type=&quot;image&quot; NAME=&quot;clearbutton&quot; ALT=&quot;Clear&quot; SRC=&quot;/images/Clear.gif&quot; border=0></a>
<a href=&quot;javascript:history.go(-1);&quot; tabindex=&quot;-1&quot;><img type=&quot;image&quot; NAME=&quot;backbutton&quot; ALT=&quot;Back&quot; SRC=&quot;/images/Back.gif&quot; border=0></a>
<INPUT Tabindex=&quot;3&quot; Type=&quot;Image&quot; NAME=&quot;submitbutton&quot; ALT=&quot;Next&quot; SRC=&quot;/images/orangeNext.gif&quot; border=0 onClick=&quot;return validate(document.forms[0],this);&quot;>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top