Sets or retrieves the index that defines the tab order for the object.
HRESULT value = object.put_tabIndex(short v);HRESULT value = object.get_tabIndex(short* p);
Type: shortthe tab index.
The IHTMLAreaElement::tabIndex value determines the tab order as follows:
- Objects with a positive IHTMLAreaElement::tabIndex are selected in increasing tab index order and in source order to resolve duplicates.
- Objects with an IHTMLAreaElement::tabIndex of zero are selected in source order.
- Objects with a negative IHTMLAreaElement::tabIndex are omitted from the tabbing order.
An element can have focus if the IHTMLAreaElement::tabIndex property is set to any valid negative or positive integer.
The following elements can have focus by default but are not tab stops. These elements can be set as tab stops by setting the IHTMLAreaElement::tabIndex property to a positive integer. applet, div, frameSet, span, table, td.
Elements can become part of the accessibility hierarchy if the IHTMLAreaElement::tabIndex attribute is set as follows:
- For Microsoft Internet Explorer 5.01 and later, set the IHTMLAreaElement::tabIndex attribute to any value.
- For Microsoft Internet Explorer 5, set the IHTMLAreaElement::tabIndex attribute to a positive value.
For Internet Explorer 5.01 or above, the attribute may be set to any value in the valid range of
Content of elements with a closing tag can have focus by default, but are not tab stops. As of Internet Explorer 5, you can set the IHTMLAreaElement::tabIndex property to a valid positive integer to force the content to have a tab stop.
Elements that receive focus can fire the HTMLFrameSiteEvents::onblur and HTMLFrameSiteEvents::onfocus events as of Microsoft Internet Explorer 4.0, and the HTMLFrameSiteEvents::onkeydown, HTMLFrameSiteEvents::onkeypress, and HTMLFrameSiteEvents::onkeyup events as of Internet Explorer 5.
Build date: 11/12/2012