tabindex 带有指定 tab 键顺序 或焦点 focus

登录注册时,文本框输入焦点 TAB 键时,自定义下一个焦点的顺序

<input type="text" tabindex="1" />
<input type="text" tabindex="2" />

带有指定 tab 键顺序的链接:

<a href="http://www.w3school.com.cn/" tabindex="2">W3School</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>

http://www.w3school.com.cn/tags/att_standard_tabindex.asp

原文地址:https://www.cnblogs.com/xiangsj/p/6737857.html