UConn HomeBanner
ITL HOME ABOUT UCONN ACADEMICS/RESEARCH ADMINISTRATION CAMPUSES EVENTS  

Web Accessibility

Scripts, Applets & Plug-ins: Provide alternative content in case active features are inaccessible or unsupported.

Checkpoint 6.3 [Priority 1] Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported. If this is not possible, provide equivalent information on an alternative accessible page.

Checkpoint 6.4 [Priority 2] For scripts and applets, ensure that event handlers are input device-independent.

An event handler is a script that is invoked when a certain event occurs (e.g, the mouse moves, a key is pressed, the document is loaded, etc.). In HTML 4.01, event handlers are attached to elements via event handler attributes (the attributes beginning with "on", as in "onkeyup").

Some event handlers, when invoked, produce purely decorative effects such as highlighting an image or changing the color of an element's text. Other event handlers produce much more substantial effects, such as carrying out a calculation, providing important information to the user, or submitting a form. For event handlers that do more than just change the presentation of an element, content developers should do the following:

  1. Use application-level event triggers rather than user interaction-level triggers. In HTML 4.01, application-level event attributes are "onfocus", "onblur" (the opposite of "onfocus"), and "onselect". Note that these attributes are designed to be device-independent, but are implemented as keyboard specific events in current browsers.
  2. Otherwise, if you must use device-dependent attributes, provide redundant input mechanisms (i.e., specify two handlers for the same element):
    • Use "onmousedown" with "onkeydown".
    • Use "onmouseup" with "onkeyup"
    • Use "onclick" with "onkeypress"

    Note that there is no keyboard equivalent to double-clicking ("ondblclick") in HTML 4.01.

  3. Do not write event handlers that rely on mouse coordinates since this prevents device-independent input.

 

Accessibility Resources
      
A-Z INDEX         UCONN HOME         MAPS & DIRECTIONS Instructional Design & Development
Center for Undergraduate Education
368 Fairfield Road, Unit 2001
Storrs, CT 06269-2001
Ph: 860-486-2272 Fax: 860-486-1766