Redigera

Dela via


HtmlElement.TabIndex Property

Definition

Gets or sets the location of this element in the tab order.

public:
 property short TabIndex { short get(); void set(short value); };
public short TabIndex { get; set; }
member this.TabIndex : int16 with get, set
Public Property TabIndex As Short

Property Value

The numeric index of the element in the tab order.

Remarks

TabIndex determines which element in an HTML document will next receive focus when the user presses the TAB key. By default, the only elements included in the tab order are INPUT elements, the SELECT control, and any element whose contentEditable property is set to true. You can include any HTML element in the tab order, such as a DIV, by assigning it an explicit TabIndex.

Valid values for TabIndex range from -32767 to 32767.

Applies to

See also