<html>
<body>
<h1>The Element Object</h1>
<h2>The accessKey Property</h2>
<a id="w3s" accesskey="w" href="../index.html">W3Schools</a>
<p>The accesskey of the link is:</p>
<p id="demo"></p>
<script>
let key = document.getElementById("w3s").accessKey;
document.getElementById("demo").innerHTML = key;
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_accesskey2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:39:43 GMT -->
</html>