HtmlElement.TabIndex Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應