WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: event handlers

for

Number of posts in this thread: 3 (In chronological order)

From: Leo Smith
Date: Thu, Sep 06 2001 8:50PM
Subject: event handlers
No previous message | Next message →

Hi All,
Not being a JavaScript guru, can someone tell me what the logical
equivalents are of the following device-dependant event handlers:
onClick = (onSelect?)
onMouseover = (onFocus?)
onMouseout = (onBlur?)
Thanks..
Leo.

Leo Smith
Web Designer/Developer
USM Office of Publications and Marketing
University of Southern Maine
207-780-4774

From: Tim Harshbarger
Date: Thu, Sep 06 2001 3:23PM
Subject: Re: event handlers
← Previous message | Next message →

Leo,
I am not perfectly certain on some of this, so I tested with the only browser I have available at the moment. -- IE 5.0.
onClick is not equivalent to onSelect.
onClick is actually device independent. It can be triggered by either clicking with the mouse or pressing enter on the keyboard. My understanding is that the onSelect event works better with the select tag. In my quick test, onSelect did not trigger when I activated the link.
onMouseOver and onFocus do not appear to be exact equivalents.
The onFocus event is not triggered when the mouse pointer is moved over the object. It will be triggered only if the object is clicked on by the mouse and the dotted rectangle appears around the object (thus bringing the system focus to that object.) Keyboard navigation tends to move the system focus automatically, so the event is triggered immediately.
onMouseOut is not equivalent to onBlur
Moving the mouse away from an object does not trigger the onBlur event since that does not automatically move the system focus.
Perhaps, someone else might give you better and more detailed information than that.
In general, I try to steer the developers and designers I work with away from using the onMouseOver and onMouseOut events. I really do not know of any way to make them accessible and I am not aware of an accessible alternative. If onMouseOut and onMouseOver events are used, I try to keep them to the role of providing useless fluff, not content.
Tim

From: Reidy Brown
Date: Thu, Sep 06 2001 3:35PM
Subject: Re: event handlers
← Previous message | No next message

I've documented similar behavior for event handlers-- browsers may interpret
events differently. In some cases, it may make sense to perform an action
(such as a highlighted image rollover) on more than one event handlers. <a
href="" onMouseOver="highlightMe();" onFocus="highlightMe();">.
Reidy
-------------------------------------------
Reidy Brown
Accessibility Coordinator/Sr. Software Engineer
Blackboard, Inc.
(202) 463-4860 x236
-------------------------------------------
Blackboard 5.5 Fully Implements Section 508 Accessibility Standards!
Learn more:
http://access.blackboard.com
-------------------------------------------