Hi
I am checking a site for accessibility and Dreamweaver suggests making sure
that the menu is accessible via keyboard as well as mouse (i.e
device-independent). A question has arisen which is probably more to do with
my lack of understanding of how a user might interact with a web site
without using a mouse.
I have tried using the onKeyDown command but it does not seem to be
key-specific. If this command is added to eight menu links, how does the
system know which link to go to? I have pasted a simple file below showing
the code that Dreamweaver produces.
Thanks,
Dave Henson.
<HTML>
<HEAD>
<TITLE>Untitled Document</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2)
eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</HEAD>
<BODY>
<P><A href="http://www.aaa.com"
onKeyDown="MM_goToURL('parent','http://www.aaa.com');return
document.MM_returnValue">Link</A>
</P>
<P><A href="http://www.bbb.com"
onKeyDown="MM_goToURL('parent','http://www.bbb.com');return
document.MM_returnValue">Link 2</A>
</P>
</BODY>
</HTML>
--
..