Apply Keyboard Shortcuts To Web Page

Filed in: Web Development — June 20th, 2004

 

Applying keyboard shortcuts(accesskeys) to web page is much easier than you thought of! :cool: After applied keyboard shortcuts, your site visitors can navigate web pages without using a mouse. Fast and easy!

Here is one minute tutorial to add accesskey. ;)

This is a normal link:
<a href="index.html">Home</a>

This is a link with accesskey:
<a href="index.html" accesskey="h" >Home</a>

That’s it! When you press Alt+h on keyboard, the browser will bring you to index.html. Easy huh? :)

References:
http://www.sitepoint.com/article/accesskeys
http://www.alistapart.com/articles/accesskeys

Read also:

  • eartho
    what? it's that easy? ..... and here i was coding up javascript for recognizing keypresses...
blog comments powered by Disqus