<!DOCTYPE html>
<html lang="en-US">
<body>
<a href="/jquery" accesskey="j">Learn jQuery</a>
<p>This Example will work only on Firefox</p>
<p>Click on the button to display the accessKeyLabel of the anchor tag.</p>
<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>