[Typo3-dev] Typolink: Accessible popup links

JoH info at cybercraft.de
Tue Apr 5 19:25:57 CEST 2005


>> To make them accessible, you should add someting like this to the a
>> tag: onkeypress="this.onclick"
>> This way you don't rely on a mouse as the input device.


The last sentence was misleading. It should be:
This way you can comply to the accessibility guidelines without technical
problems.

> onclick reacts to the keyboard, too, IMHO. At least when pressing
> enter, it should work without this. DOes anyone know better/exactly?

You are right, but the problem is:

Nobody really knows why, but you are forced to use "onkeypress" when using
"onclick" to comply to the accessibility guidelines. If you don't you won't
get AAA.
But the simple use of "onkeypress" with the same function you are using for
"onclick" will trigger the function even if you just TAB through the links
in all browsers.
To avoid this stupid behaviour you have to use onkeypress="this.onclick".
Only IE works fine without that hack.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have now clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau






More information about the TYPO3-dev mailing list