WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: popup windows

for

From: Jared Smith
Date: Feb 20, 2004 9:32AM


> Don't forget to also include onkeypress as well as onlick

In all up-to-date browsers that I have tested, onkeypress is not
necessary as long as the javascript is associated with a hypertext
link or form control. They all trigger the onclick event, even though
the keyboard is used. You would probably only need both onclick and
onkeypress if you're working with something that is not natively
'clickable' (i.e., <TH>, <P>, etc.).

Jared Smith
WebAIM (Web Accessibility In Mind)
Center for Persons with Disabilities
Utah State University


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