HTML DOM accessKey Property
Complete Button Object Reference
Definition and Usage
The accessKey property sets or returns a keyboard key to access a button.
Note: Use Alt + accessKey to give focus to the element with the
specified access key.
Syntax
buttonObject.accessKey=accessKey
|
Example
The following example returns the access key for a button:
<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>
|
Try-It-Yourself Demos
Return the access key for a button
Complete Button Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|