HTML DOM accessKey Property
Complete Anchor Object Reference
Definition and Usage
The accessKey property sets or returns a keyboard key to access a link.
Note: Use Alt + accessKey to give focus to the
element with the specified access key.
Syntax
anchorObject.accessKey=accessKey
|
Example
The following example sets the access key of the of the link:
<html>
<head>
<script type="text/javascript">
function accesskey()
{
document.getElementById('w3').accessKey="w"
}
</script>
</head>
<body onload="accesskey()">
<a id="w3" href="http://www.w3schools.com/">W3Schools.com</a>
</body>
</html>
|
Try-It-Yourself Demos
Add
accessKey to hyperlinks
Complete Anchor Object Reference
Want To Be A Web Master?
If you want to be a Web Master, you will have to host your web site with an ISP (Internet Service Provider).
MaximumASP offers seven different configurations of dedicated servers to meet your Windows and .NET hosting needs.
Hosted on our multi-tiered Enterprise Class network, these servers provide the performance, security and reliability
you need to host your high end web sites and applications.
Visit MaximumASP
|