|
JavaScript�ֲ�
|
��Ŀ¼�� ����һҳ�� ����һҳ�� ��������
onKeyDown
Executes JavaScript code when a KeyDown event occurs; that is, when the user depresses a key.
�
onKeyDown="handlerText"
����
ʹ�õ��¼�����
| type | �������¼������͡� | | target | �������¼�ԭ�����͵Ķ����� | layerX, layerY, pageX, pageY, screenX, screenY | For an event over a window, these represent the cursor location at the time the event occurred. For an event over a form, they represent the position of the form element. | | which | Represents the ASCII value of the key pressed. To get the actual letter, number, or symbol of the pressed key, use the String.fromCharCode ������ To set this ���� when the ASCII value is unknown, use the String.charCodeAt ������ | | modifiers | Contains the list of modifier keys held down when the event occurred. |
����
A KeyDown event always occurs before a KeyPress event. If onKeyDown returns false, no KeyPress events occur. This prevents KeyPress events occurring due to the user holding down a key.
�ο�
onKeyPress, onKeyUp
Ҫ���ù����¼������ij�����Ϣ���뿴���¼��ij�����Ϣ����
Ҫ���ù����¼���������Ϣ���뿴�¼���
��Ŀ¼�� ����һҳ�� ����һҳ�� ��������
|