[thelist] Accessible Links in an imagemap

Mark Howells mark at mountain.ch
Fri Jul 19 10:45:01 CDT 2002


> - setting HREF="#xyz" or void(0) and then checking if onClick() works

This is not an accessible solution, as the links won't work if Javascript is
disabled.

> - instead of onClick how about href="javascript:func()"

Ditto: you should never use javascript: directly in the link, as it will
fail in browsers without Javascript.

I'm not sure that there is a solution, as the concept of accessibility
recommends that new browser windows are only spawned if so requested by the
user (not by the code itself). If accessibility is high on your list of
priorities, perhaps you should rethink the use of Javascript for basic
navigation, as it stops a certain audience -- those without
Javascript-enabled browsers -- from accessing content.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list