[Irl-dean] Creating accessible javascript

drice at nda.ie drice at nda.ie
Wed Sep 27 10:31:28 IST 2006


in my experience there is bad and not-so-bad Javascript.  The bad 
Javascript is used overtly for things like menus and cannot be read by 
screen readers as in the example you gave.  The not-so-bad Javascript is 
usually used in conjunction with HTML elements for example for submit 
buttons on forms.  It can be read by screen readers but if the user's 
browser does not support or has Javascript turned off you are in trouble. 
In many of these cases Javascript is being used in the place of standard 
form functionality for some strange reason. 

Using Javascript wisely is the trick.  We provide further advice on this 
in our draft guidelines at :

The following is an example of a page that we developed for the Oasis 
website that uses Javascript in a form in an accessible way: 
The form provides a query interface to a database of public service 
locations (everything from schools to garda stations).  The three form 
fields are 'category', 'county' and 'town'.  the second and third 
drop-down menus use Javascript - once a county is selected the third menu 
is populated with towns in that county.  The nice thing about this 
implementation is that it works well with screen readers but also when 
Javascript is disabled.  When Javascript is disabled the form still works 
- you just don't get the 'town' drop-down menu.  On submit the server 
knows to provide the list of towns for that county to the user- hence 
adding an extra step in the process.  Ultimately the user goes through one 
more step if Javascipt is not enabled but still get the exact same info. 

Hope this helps,
Dónal Rice

"Tim Culhane" <tim.culhane at criticalpath.net> 
Sent by: irl-dean-admin at list.eeng.dcu.ie
27/09/2006 08:39
Please respond to
irl-dean at list.eeng.dcu.ie

<irl-dean at list.eeng.dcu.ie>

[Irl-dean] Creating accessible javascript

Hi guys,

My company is currently developing  web based applications which rely
heavily on javascript.

Unfortunately  at present  the javascript does not seem very accessible to

For example,     menus  and forms created in javascript  are not visible 
Jaws when I view the web pages.

Can anybody suggest resources which describe how accessible javascript can
be developed in such a way that it  is equally usable   by  disabled and
non-disabled people?

I found a good resource at the below url, but was wondering if people on 
list had other  suggestions?




Tim Culhane,
Critical Path Ireland,
42-47 Lower Mount Street,
Dublin 2.
Direct line: 353-1-2415107
phone: 353-1-2415000

Tim.culhane at criticalpath.net

Critical Path
a global leader in digital communications

Irl-dean mailing list
Irl-dean at list.eeng.dcu.ie

"The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. It is the policy of the National Disability Authority to disallow the sending of offensive material and should you consider that the material contained in this message is offensive you should contact the sender immediately and also mailminder at nda.gov.ie".

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.universaldesign.ie/pipermail/ceud-ict/attachments/20060927/058fc77e/attachment.html 

More information about the CEUD-ICT mailing list