ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: HTML DOM :: HTML DOM accessKey ÊôÐÔ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

HTML DOM accessKey ÊôÐÔ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:1992 :: ::

¶¨ÒåÓëÓ÷¨

The accessKey property sets or returns a keyboard key to access a link.
accessKey ÊôÐÔ¿ÉÒÔÓÃÀ´ÉèÖûòÊÇ·µ»ØÓüüÅÌËù·ÃÎʵÄÁ¬½Ó¡£

Note: Use Alt + accessKey to give focus to the elements with a specified access key.
×¢Ò⣺ͨ¹ýÖ¸¶¨access key ¿ÉÒÔʹÓÃAlt+accessKeyÀ´¾Û½¹Ä³¸öÔªËØ

Óï·¨

anchorObject.accessKey=accessKey


¾ÙÀý

<html>
<head>
<script type="text/javascript">
function access()
{
document.getElementById('myAnchor').accessKey="a"

}
</script>
</head>

<body onload="access()">
<p><a id="myAnchor" href="http://www.w3pop.com">
Visit w3pop.com</a></p>

</body>

</html>


³¢ÊÔÓëÑÝʾ

Add an accessKey to a link
ΪÁ¬½Ó¼ÓÉÏaccessKey

ÆÀÂÛ (1) 1 All