<html>
<body>
<a id="w3s" href="../index.html">W3Schools</a><br>
<p>The accesskey attribute specifies a shortcut key to activate/focus an element.</p>
<p>In this example, the keyboard key "w" is for w3schools.com.</p>
<p><strong>Note:</strong> The shortcut varies from different browsers:</p>
<ul>
<li>IE, Chrome, Safari, Opera 15+: [ALT] + <em>accesskey</em></li>
<li>Opera prior version 15: [SHIFT] [ESC] + <em>accesskey</em></li>
<li>Firefox: [ALT] [SHIFT] + <em>accesskey</em></li>
</ul>
<script>
document.getElementById("w3s").accessKey = "w";
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_element_accesskey by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:02:17 GMT -->
</html>