WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: Using JavaScript to modify forms

for

From: julian.rickards
Date: Apr 8, 2003 6:27AM


Jared wrote:

<snip>
> In my opinion, as long as the JavaScript facilitates ease-of-use on
> the page, does not create accessibility barriers, and the page is
> still useable without JavaScript enabled, then why not use it?
</snip>

Good rules to follow. However, I wonder if the "Select All" button or link
is visible to non-JavaScript users. If it is and therefore, without
JavaScript, it doesn't work, might that not be a source of confusion for
both sighted and vision-impaired. If it is visible to non-JavaScript users,
then I suggest that it be JavaScript generated so that if JavaScript is
disabled, then this option will not appear.

For example:

<script type="text/javascript">
document.write("Click here to select all");
etc.
</script>

Jules


----
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/