WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Help with adding ACCESSKEY statements?

for

From: Keith Patton
Date: Feb 20, 2004 4:09AM


Hi there,

Here is an example of a link which has javascript functions called for
on/off state setting (remember to use keyboard friendly event triggers as
well as mouse only ones for accessibility reasons).

You then just need to add the accesskey reference as an attribute of the a
tag.

<a onmouseover="JSfunctionOn();" onfocus="JSfunctionOn();"
onmouseout="JSfunctionOff();" onblur="JSfunctionOff();" class="cssClass"
accesskey="1" href="../homepage/">

we just implemented accesskeys on our site, the details on which you can
view at: http://www.ethicalmedia.com/stories/accessingoursite/

Hope that helps,

Keith Patton
Technical Director
Ethical Media
www.ethicamedia.com