HTML DOM accessKey ÊôÐÔ
¶¨ÒåºÍÓ÷¨
accessKey ÊôÐÔ¿ÉÉèÖûò·µ»Ø·ÃÎÊÒ»¸ö°´Å¥µÄ¼üÅ̰´¼ü¡£
×¢ÊÍ£ºÇëʹÓà Alt + accessKey ΪӵÓÐÖ¸¶¨¿ì½Ý¼üµÄÔªËØ¸³Óè½¹µã¡£
Óï·¨
buttonObject.accessKey=accessKey
ʵÀý
ÏÂÃæµÄÀý×Ó¿É·µ»ØÒ»¸ö°´Å¥µÄ¿ì½Ý¼ü£º
<html>
<body>
<form>
<input type="button" value="Click me!"
accesskey="b" id="button1" />
</form>
<p>AccessKey for button is:
<script type="text/javascript">
x=document.getElementById('button1');
document.write(x.accessKey
);
</script></p>
</body>
</html>