HTML DOM tabIndex Property
ဥပမာ
လင့်သုံးခုအတွက် တက်ဘ်အမှာစာကို ပြောင်းပါ-
document.getElementById("myAnchor1").tabIndex = "3";
document.getElementById("myAnchor2").tabIndex = "2";
document.getElementById("myAnchor3").tabIndex = "1";
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
tabIndex ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ tabindex attribute ၏တန်ဖိုးကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
tabindex ရည်ညွှန်းချက်သည် ဒြပ်စင်တစ်ခု၏ တက်ဘ်အစီအစဥ်ကို သတ်မှတ်သည် ("တက်ဘ်" ခလုတ်ကို လမ်းညွှန်ရန်အတွက် အသုံးပြုသောအခါ)။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
tabIndex | Yes | Yes | Yes | Yes | Yes |
အထားအသို
tabIndex ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
HTMLElementObject.tabIndex
tabIndex ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
HTMLElementObject.tabIndex = number
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | Specifies the tabbing order of the element (1 is first). Note: If the number is negative, the element will be removed from the tab order |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်၏ တက်ဘ်အစီအစဥ်ကို ကိုယ်စားပြုသော နံပါတ် |
---|
နောက်ထပ် ဥပမာများ
ဥပမာ
စာရွက်စာတမ်းရှိ ပထမ <a> ဒြပ်စင် (အညွှန်း 0) ၏ တက်ဘ်အစီစဥ်ကို ရယူပါ-
var x = document.getElementsByTagName("A")[0].tabIndex;
document.getElementById("demo").innerHTML = x;
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML tabindex Attribute
❮ Element Object