首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:Javascript 参考手册
TRY RUN / 在线示例
Javascript 参考手册 尝试一下
Javascript 参考手册 尝试一下
源代码
运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>安科教程(www.ancii.com)</title> <script> function changeTabIndex(){ document.getElementById('1').tabIndex="3"; document.getElementById('2').tabIndex="2"; document.getElementById('3').tabIndex="1"; } </script> </head> <body> <p><a id="1" href="https://www.ancii.com">1</a></p> <p><a id="2" href="https://www.ancii.com">2</a></p> <p><a id="3" href="https://www.ancii.com">3</a></p> <input type="button" onclick="changeTabIndex()" value="改变标签索引"> <p>试着先使用“Tab”按钮导航到链接之后你单击“改变标签索引”按钮。</p> </body> </html>
运行结果