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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tabindex

Status
Not open for further replies.

rico14d

Programmer
Apr 8, 2002
135
GB
Hi,

I have a form and I want to disable some elements from having focus when tabbing through the fields. Is there any way to do this or will I have to just put them at the end of the form using the tabindex property?

Thanks,
Rich.
 
Ive just realised I can use the DISABLED property but I would like the styling to stay the same as normal.

Ive used the READONLY property before for TEXTBOXes but im trying to achieve this for a link <A>.
 
Ive managed to work around the problem by using

<a onfocus=&quot;document.form1.nextItem.focus()&quot; href=.....

Thanks for all my help!

Rich.
 
Is this what you want?

<FORM name=&quot;form007&quot;>
<INPUT type=&quot;text&quot; name=&quot;field11&quot;><br>
<INPUT type=&quot;text&quot; name=&quot;field12&quot; onfocus=&quot;blur()&quot;><br>
<INPUT type=&quot;text&quot; name=&quot;field13&quot;><br>
</FORM>

Hope this helps,
Erik

<-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
Im using IE 6.0.2 and when i tried your example as soon as i tabbed to the second field it reset the focus to the start of the form. So I could never tab to the second OR third fields.

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top