From ede8167be634194a14f76f6d45485b8891bcdb35 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Fri, 30 Jul 2021 13:16:49 +0900 Subject: orphaned/Web/API/HTMLOrForeignElement のメンバーを HTMLElement へ移動 (#1595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * orphaned/Web/API/HTMLOrForeignElement のメンバーを HTMLElement へ移動 --- files/ja/web/api/htmlelement/tabindex/index.html | 85 ++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 files/ja/web/api/htmlelement/tabindex/index.html (limited to 'files/ja/web/api/htmlelement/tabindex') diff --git a/files/ja/web/api/htmlelement/tabindex/index.html b/files/ja/web/api/htmlelement/tabindex/index.html new file mode 100644 index 0000000000..c327f1b168 --- /dev/null +++ b/files/ja/web/api/htmlelement/tabindex/index.html @@ -0,0 +1,85 @@ +--- +title: HTMLElement.tabIndex +slug: Web/API/HTMLElement/tabIndex +tags: + - API + - HTML DOM + - HTMLElement + - HTMLElement + - Property + - Reference + - tabIndex +translation_of: Web/API/HTMLElement/tabIndex +original_slug: Web/API/HTMLElement/tabIndex +--- +
{{APIRef("HTML DOM")}}
+ +

tabIndex は {{DOMxRef("HTMLElement")}} インターフェイスのプロパティで、現在の要素のタブの順序を表します。

+ +

タブの順序は次のとおりです。

+ +
    +
  1. 正の tabIndex を持つ要素。 同一の tabIndex を持つ要素は、表示された順序でナビゲートすべきです。 ナビゲーションは、最も低い tabIndex から最も高い tabIndex に進みます
  2. +
  3. tabIndex 属性をサポートしていない要素、または tabIndex 属性をサポートし、 tabIndex0 に割り当てる要素は、それらが表示された順序で。
  4. +
+ +

無効になっている要素は、タブの順序に関与しません。

+ +

値は逐次的である必要はなく、特定の値で始まる必要もありません。 各ブラウザーは非常に大きな値を切り取りますが、値は負である場合もあります。

+ +

構文

+ +
element.tabIndex = index;
+var index = element.tabIndex;
+
+ +

+ +

index は整数です。

+ +

+ +
const b1 = document.getElementById('button1');
+
+b1.tabIndex = 1;
+
+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG', '#dom-tabindex', 'tabindex')}}{{Spec2('HTML WHATWG')}}{{SpecName('DOM2 HTML')}} からの変更なし。
{{SpecName('DOM2 HTML', 'html.html#ID-40676705', 'tabindex')}}{{Spec2('DOM2 HTML')}}{{SpecName('DOM1')}} からの変更なし。
{{SpecName('DOM1', 'level-one-html.html#ID-40676705', 'tabindex')}}{{Spec2('DOM1')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("api.HTMLElement.tabIndex")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf