fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.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="http://www.fmpq.com">1</a></p> <p><a id="2" href="http://www.fmpq.com">2</a></p> <p><a id="3" href="http://www.fmpq.com">3</a></p> <input type="button" onclick="changeTabIndex()" value="改变标签索引"> <p>试着先使用“Tab”按钮导航到链接之后你单击“改变标签索引”按钮。</p> </body> </html>
运行结果