From: "Katrina" <[EMAIL PROTECTED]>
I am currently reading a book called 'DOM Scripting' by Jeremy
Keith. In it, the author suggests not to use onKeyPress as it can
lead to accessibility issues when users are tabbing past those
elements with that eventHandler.
I would (and do) avoid onKeyPress. Most people I observe using it, do
so because they have onclick events embedded and when they run the
page through an automated accessibility checker it throws an error :-)
As you've gathered, onkeypress wreaks havoc with people's expectations
when using the tab key. In 99% of the browsers on the market, the
Enter key will fire an onclick. In some modern browsers, onkeypress
will prevent the Enter key from behaving as one would expect it.
--
Al Sparber
PVII
http://www.projectseven.com
"Designing with CSS is sometimes like barreling down a crumbling
mountain road at 90 miles per hour secure in the knowledge that
repairs are scheduled for next Tuesday".
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************