HTML DOM AccessKey ÊôÐÔ
¶¨ÒåºÍÓ÷¨
accessKey ÊôÐÔ¿ÉÉèÖûò·µ»Ø·ÃÎʵ¥Ñ¡°´Å¥µÄ¿ì½Ý¼ü¡£
×¢ÊÍ£ºÇëʹÓà Alt + accessKey ΪӵÓÐÖ¸¶¨¿ì½Ý¼üµÄÔªËØ¸³Óè½¹µã¡£
Óï·¨
radioObject.accessKey=accesskey
ʵÀý
ÏÂÃæµÄÀý×Ó¿É·µ»Øµ¥Ñ¡°´Å¥µÄ¿ì½Ý¼ü£º
<html> <body> <form> Male: <input id="male" accesskey="m" type="radio" name="Sex" value="Male" /> <br /> Female: <input id="female" accesskey="f" type="radio" name="Sex" value="Female" /> </form> <p>The access key for the radio buttons are: <script type="text/javascript"> document.write(document.getElementById('male').accessKey); document.write(" and "); document.write(document.getElementById('female').accessKey); </script></p> </body> </html>