mazin
01-14-2003, 06:34 PM
When I try to use the 'which' property of the event 'onKeydown' by issue the code
alert('you press '+window.event.which+'key')
in the 'onKeydown' eventhandler function the alert window display 'Undefined' word for the property at any key I depressed.
so how can I get the right code of the depressed key using the 'which' property.
by the way I'm using IE 5.5 browser.
alert('you press '+window.event.which+'key')
in the 'onKeydown' eventhandler function the alert window display 'Undefined' word for the property at any key I depressed.
so how can I get the right code of the depressed key using the 'which' property.
by the way I'm using IE 5.5 browser.