ITѧϰ�� -> �����ĵ� -> JavaScript���Բο��ֲ�
JavaScript�ֲ�
��Ŀ¼�� ����һҳ�� ����һҳ�� ��������

onKeyDown

Executes JavaScript code when a KeyDown event occurs; that is, when the user depresses a key.

�¼����ö���document, Image, Link, Textarea
ʵ�ְ汾Navigator 4.0

�﷨

onKeyDown="handlerText"

����

handlerTextJavaScript ��������һ�� JavaScript �����ĵ��á�

ʹ�õ��¼�����

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.
whichRepresents 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 ������
modifiersContains 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�����Ϣ����

Ҫ���ù����¼���������Ϣ���뿴�¼���


��Ŀ¼�� ����һҳ�� ����һҳ�� ��������

����ҳ�涥��