2010-10-13
展开全部
function EventCommand(oEvent){ document.write(oEvent.keyCode); }
OnKeyPress="EventCommand(event);" //这里参数event是关键字。
这里给出一些键盘的键值:
回车 keyCode is 13
ESC keyCode is 27
Backspace keyCode is 8
Tab keyCode is 9
Shift keyCode is 16
Ctrl keyCode is 17
Alt keyCode is 18
Space keyCode is 32
Insert keyCode is 45
Delete keyCode is 46
OnKeyPress="EventCommand(event);" //这里参数event是关键字。
这里给出一些键盘的键值:
回车 keyCode is 13
ESC keyCode is 27
Backspace keyCode is 8
Tab keyCode is 9
Shift keyCode is 16
Ctrl keyCode is 17
Alt keyCode is 18
Space keyCode is 32
Insert keyCode is 45
Delete keyCode is 46
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询