HTML DOM accessKey ÊôÐÔ
¶¨ÒåºÍÓ÷¨
accessKey ÊôÐÔ¿ÉÉèÖûò·µ»Ø·ÃÎÊÒ»¸öÁ´½ÓµÄ¼üÅ̰´¼ü¡£
×¢ÊÍ£ºÇëʹÓà Alt + accessKey ΪӵÓÐÖ¸¶¨¿ì½Ý¼üµÄÔªËØ¸³Óè½¹µã¡£
Óï·¨
anchorObject.accessKey=accessKey
ʵÀý
ÏÂÃæµÄÀý×Ó½«ÎªÁ´½ÓÉèÖÿì½Ý¼ü£º
<html>
<head>
<script type="text/javascript">
function accesskey()
{
document.getElementById('w3').accessKey="w"
}
</script>
</head>
<body onload="accesskey()">
<a id="w3" href="http://www.w3school.com.cn/">W3School.com.cn</a>
</body>
</html>