WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Select lists and automatically forwarding onchange

for

From: Jared Smith
Date: Nov 29, 2005 1:00PM


Austin, Darrel wrote:
> I could do that, but often I just want to click it with the mouse and
> scroll thorugh. Then get rid of it. Sometime (perhaps unconsciously)
> just clicking an arbitrary item to close it.

... or inadvertantly leaving the drop-down menu selected and then later
using the mouse scroll wheel to scroll up or down on the page just to find
your browser suddenly navigating to a new page.

Anytime you change the default behavior of the browser you are bound to
cause problems. The optimal solution is to add the "Go" (or whatever)
button and process the form data and do the redirect server-side thus
avoiding JavaScript altogether.

http://webaim.org/techniques/javascript/eventhandlers#onchange__50_016_05_02

Jared Smith
WebAIM.org