473,799 Members | 3,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessibility issue - onKeyDown

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>Untitl ed Document</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaS cript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL .arguments; document.MM_ret urnValue = 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_g oToURL('parent' ,'http://www.aaa.com');r eturn
document.MM_ret urnValue">Link</A>
</P>
<P><A href="http://www.bbb.com"
onKeyDown="MM_g oToURL('parent' ,'http://www.bbb.com');r eturn
document.MM_ret urnValue">Link 2</A>
</P>
</BODY>
</HTML>

--
..
Jul 23 '05 #1
5 2699
Dave Henson wrote:
onKeyDown


You'll introduce more accessibility hurdles with these tricks.

--
Google Blogoscoped
http://blog.outer-court.com
Jul 23 '05 #2
On Mon, 15 Nov 2004 13:53:03 -0000, "Dave Henson"
<no***********@ hotmail.com> wrote:
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.


You've missed the point. Keyboard accessibility is not about providing
extra facilities; it's mainly about not screwing up those which the
browser provides as standard. Write a simple page using just HTML (no
CSS, script, whatever) and it will be accessible via the keyboard.
Perhaps not very conveniently if you have a huge number of links, but
it's possible.

So:
- write a very simple page with a few links, using a text editor rather
than something like Dreamweaver;
- learn how to navigate it with the keyboard in your favourite browser;
- check that you can navigate your "real" pages in the same way.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 23 '05 #3

"Dave Henson" <no***********@ hotmail.com> wrote in message
news:2v******** *****@uni-berlin.de...
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.


Ordinary <A> links are already keyboard-accessible. Each browser defines a
key (the tab key in Internet Explorer, for example) for moving the focus
from one link to the next.

Keyboard accessibility becomes a concern when you assume the user has
scripting enabled and you use onclick, onmousedown, etc., to respond to user
interactions, leaving keyboard-only users stranded.

Jul 23 '05 #4
On Mon, 15 Nov 2004, Stephen Poley wrote:
On Mon, 15 Nov 2004 13:53:03 -0000, "Dave Henson"
<no***********@ hotmail.com> wrote:
I am checking a site for accessibility and Dreamweaver suggests
making sure that the menu is accessible via keyboard as well as
mouse
An accessibility checker would likely do the same, since this is
an objective checkpoint in the WAI recommendation.
(i.e device-independent).

Hmmm. That's a bit of a paradox, since a keyboard action is surely no
more nor less "independen t" of an actual device than is a mouse
action.

Stephen responded:
You've missed the point.
"You might say that; I couldn't possibly comment"(SCNR)
Keyboard accessibility is not about providing extra facilities; it's
mainly about not screwing up those which the browser provides as
standard.
Accessibility checkers are inclined to tell you to resolve this issue
by adding an "onkeydown" for every "onmousedow n", and so on. Even the
W3C does this - Google suggests a look at

http://www.w3.org/WAI/wcag-curric/sam70-0.htm

The wording is quite important here:

For scripts that do more than just change the presentation of an
element, content developers should do the following:

That's saying that if the effect is frivolous enough, then there's
no need of a keyboard equivalent, despite the checkpoint. IMHO/YMMV

Indeed: often the mouse action is just an optional extra way of
achieving some result that can be achieved anyhow; and adding an
unwanted keyboard action can make it subjectively /harder/ to use the
web page.

My "take" on this is that if the mouse action is sufficiently
frivolous, and you're mandated to pass all of the objective
checkpoints, then it's better to simply take it out.

If not, then consider carefully whether the suggested resolution
really does enhance the subjective accessibility, despite this
apparent violation of a WAI objective accessibility checkpoint. (If
you're into formal assessment, then make a note on the accessibility
audit that you considered the issue and took this deliberate
decision.)
Write a simple page using just HTML (no CSS, script, whatever) and
it will be accessible via the keyboard. Perhaps not very
conveniently if you have a huge number of links, but it's possible.

So:
- write a very simple page with a few links, using a text editor rather
than something like Dreamweaver;
- learn how to navigate it with the keyboard in your favourite browser;
- check that you can navigate your "real" pages in the same way.


I *think* you're saying approximately the same as me, just approaching
the topic from a different angle. But feel free to shout me down if
I'm misunderstandin g you.

cheers
Jul 23 '05 #5
In article <Pi************ *************** ***@ppepc56.ph. gla.ac.uk>,
"Alan J. Flavell" <fl*****@ph.gla .ac.uk> writes:
>I am checking a site for accessibility and Dreamweaver suggests
>making sure that the menu is accessible via keyboard as well as
>mouse

Oh dear. This is a hoary old chesnut.
An accessibility checker would likely do the same, since this is
an objective checkpoint in the WAI recommendation.
>(i.e device-independent).

Only if you take character strings like "mouse" or "click" as implying
a particular kind of device. Of course, they *suggest* one, but that's
entirely different. Browsers that work without a mouse can and do
support scripting events in an appropriate manner.
Hmmm. That's a bit of a paradox, since a keyboard action is surely no
more nor less "independen t" of an actual device than is a mouse
action.
Indeed. As soon as you start duplicating events in the name of device-
independence, you are really introducing device dependence that wasn't
there before. Or, more likely, you're having no effect except to make
life more complicated for yourself.
Keyboard accessibility is not about providing extra facilities; it's
mainly about not screwing up those which the browser provides as
standard.
Sounds like a fair summary. Occasionally it may be more than that
(e.g. skip-navbar kind of things), but in general that's right.
Accessibility checkers are inclined to tell you to resolve this issue
by adding an "onkeydown" for every "onmousedow n", and so on. Even the
W3C does this - Google suggests a look at
IMNSHO that's a misreading of WCAG. And to be fair on W3C, that's just
someone's presentation, not part of the guidelines themselves. Not that
W3C always deserve being fair on ...
The wording is quite important here:
Yes, if an event is merely cosmetic, then an accessible alternative
is likely to be superfluous.
Write a simple page using just HTML (no CSS, script, whatever) and
it will be accessible via the keyboard. Perhaps not very
conveniently if you have a huge number of links, but it's possible.


Indeed. But the issue of number of links is important. Don't produce
a site-wide template that puts lots of links on every page: that makes
the whole thing horribly cumbersome to linear browsers.
I *think* you're saying approximately the same as me, just approaching
the topic from a different angle. But feel free to shout me down if
I'm misunderstandin g you.


I think we're (all) in broad agreement, except that I prefer to
ignore some of the blatently silly interpretations of the guidelines.

[ any nonsense in the above - blame it on my finishing that rather nice
bottle of hungarian gewürztraminer ]

--
Nick Kew
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
2132
by: lolo | last post by:
Hi, I know how validate a page for CSS or HTML, but I didn't found how validate my page for accessibility Thanx for your help
0
2132
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a larger audience, then. Original message follows: Hello,
4
2985
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab order". The application is built and the next step is to create the custom JAWS (Freedom Scientific)screen reader script to read the application. The application uses the accessibility properties for controls provided by C#. JAWS reads properties...
3
1957
by: Edward Diener | last post by:
According to the CLS specification, the accessibility of the methods for adding, removing, and raising an event must be identical. There appear to be a few problems with this: 1) According to the Managed C++ specifications, if one declares a public event without any attempt to provide one's own event access methods, clearly the most common case, the compiler generates public add_ and remove_ methods for the event and a protected raise_...
5
1936
by: Girish | last post by:
I have TWO submit buttons of type IMAGE on my asp form. This renders as <input type="image">. I need to be able to eble the ENTER button for both buttons. Yes, I know that for the input type image, the submit happens automatically to the server. Heres my problem: I have two event handlers for both these buttons as stated below: BUTTON 1:
3
1565
by: Brian Cryer | last post by:
I posted this question recently to microsoft.public.dotnet.languages.vb but didn't get any answer. I'm hoping that someone here will be able to help me. I'm working on a project using VB.NET where the customer is very fussy about accessibility. One of the requirements that I'm trying to meet is that tables should have a summary, for example (and I've taken this from...
3
2065
by: JV | last post by:
This is for anyone who has tackled the accessibility issue on their web site (and if you haven't, I bet you will in future). Apparently the asp:button control always renders as '<input type="submit" ....' (a.k.a. submit button) and this can have a big impact on your web site's keyboard handling. Default IE behavior when you have the keyboard focus on an edit field is to find the first submit button and trigger a click event on it ...
8
2043
by: cms-hispano.org | last post by:
i'm building a site about extreme accessibility, i.e.: how (and why) to get sites to become fully accessible, *beyond* W3C Web Accessibility Initiative guidelines. it's far from being completed (i just started it off!), so i'd very much appreciate any comment on the site/issue: www.accessibility.ws (fyi: i a non-commercial, personal research project) cheerio!
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10488
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9077
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6808
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5588
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4144
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.