首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:Javascript 参考手册
TRY RUN / 在线示例
Javascript 参考手册 尝试一下
Javascript 参考手册 尝试一下
源代码
运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>安科教程(www.ancii.com)</title> <script> function accesskey(){ document.getElementById('w3s').accessKey="w" document.getElementById('g').accessKey="g" } </script> </head> <body onload="accesskey()"> <a id="w3s" href="https://www.ancii.com">W3Cschool</a><br> <a id="g" href="http://www.google.com/">Google</a> <p><b>注:</b>使用Alt + <i> accesskey </i>访问具有指定访问键的元素。</p> </body> </html>
运行结果