Add keyboard shortcuts to your website
By using a simple tag in your HTML, you can make it possible for your visitors to use keyboard shortcuts on your site.
Here is how:
Let´s say you want to implement a link to The IT Community and it should load whenever someone presses ALT+g (for Firefox, for other browsers see below).
Use the following code in the body part of your site:
<a href="http://www.theitcommunity.com" accesskey="G">www.theitcommunity.com</a>
Just be sure to add a description to your page so that your visitors about this new feature.
Unfortunately every browser behaves differently:
- Internet Explorer: Alt + Accesskey + Enter
- Firefox/Mozilla/Netscape: Alt + Accesskey
- Firefox Version 2.0 and up: Alt + Shift + Accesskey
- Opera: Shift + Esc + Accesskey
Translate this page: