Add keyboard shortcuts to your website

From The IT Community
Jump to: navigation, search

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="" accesskey="G"></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

If you found this article helpful please share it, comment and help others by writing your own article.

Translate this page:

Articles found in the same category:
(max. 20 shown)