HTML DOM accessKey Property
Complete Textarea Object Reference
Definition and Usage
The accessKey property sets or returns the keyboard key to access a text area.
Note: Use Alt + accessKey to give focus to an
element with a specified access key.
Syntax
textareaObject.accessKey=accessKey
|
Example
The following example specifies an access key for a text area:
<html>
<head>
<script type="text/javascript">
function setAccessKey()
{
document.getElementById('txt1').accessKey="t"
}
</script>
</head>
<body onload="setAccessKey()">
<textarea id="txt1">
Hello world....This is a text area
</textarea>
</body>
</html>
|
Complete Textarea Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|