ma******@yahoo.com (Matthew) writes:
Separately, what is the keyevent # for a SHIFT-TAB?
The keyCode is still 9 (in the browsers I have tested), but the
event's shiftKey property will be true as well. However, just pressing
the shift key alone will trigger the keydown with keyCode 16, which
you might want to avoid too.
onkeydown="if (!(event.keyCode==9 && event.shiftKey)){something();}"
should call something except when you press shift-Tab. Including when
you press shift.
onkeydown="if (!(event.keyCode==16 || (event.keyCode==9 && event.shiftKey)))
{something();}"
This should omit the shift as well.
/L
--
Lasse Reichstein Nielsen -
lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'