Javascript Reference
Categories: radio

javascript radio tabIndex

@Sept. 2, 2008, 2:04 a.m.
tabIndex Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  



This is a number that indicates the sequence of this radio element within the tabbing order of all focusable elements in the document. Tabbing order follows a strict set of rules. Elements that have values other than zero assigned to their tabIndex properties are first in line when a user starts tabbing in a page. Focus starts with the element with the lowest tabIndex value and proceeds in order to the highest value, regardless of physical location on the page or in the document. If two elements have the same tabIndex values, the element that comes earlier in the document receives focus first. Next come all elements that either don't support the tabIndex property or have the value set to zero. These elements receive focus in the order in which they appear in the document.


The W3C DOM and Netscape 6 limit the tabIndex property to the following element objects: a, area, button, input, object, select, textarea. To this list, IE 4 adds applet, body, div, embed, isindex, marquee, span, table, and td. IE 5 adds every other renderable element. A negative value in IE (only) removes an element from tabbing order entirely.


Links and anchors cannot be tabbed to with the Mac version of IE 4, so the tabIndex property for a element objects is ignored in that version.

document.getElementById("link3").tabIndex = 6;




Under moderation.
ascendjkfass - 2016-05-25

Powered by Linode.