<!DOCTYPE html>
<html lang="en-US">
<body>
<a href="/jquery" accesskey="j">Learn jQuery</a>
<p>Click on the button to display the accessKey of the anchor tag.</p>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
var elem = document.getElementsByTagName("a")[0];
function myFunction(){
x.innerHTML = elem.accessKey;
}
</script> </body>
</html>