JavaScript element.accessKeyLabel Property
You are Here:
JavaScript element.accessKeyLabel Property
The element.accessKeyLabel
property returns a String that represents the element's assigned access key (if any); otherwise it returns an empty string.
Note: This property is read-only.
Note: This property works only on firefox.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<a href="/jquery" accesskey="j">Learn jQuery</a>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
var element = document.getElementsByTagName("a")[0];
function myFunction(){
x.innerHTML = "Press: " +element.accessKeyLabel;
}
</script>
</body>
</html>
Syntax
element.accessKeyLabel
Return Values
Value | Explanation |
---|---|
String | Returns a String that represents the element's assigned access key (if any). |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.