W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <script type="text/javascript"> function setAccessKeys() { document.getElementById('fname').accessKey="n" document.getElementById('pwd').accessKey="p" } </script> </head> <body onload="setAccessKeys()"> <form> Name: <input id="fname" type="text" /> <br /> Password: <input id="pwd" type="password" /> </form> </body> </html>