EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

keyCode property

Sets or retrieves the Unicode key code associated with the key that caused the event.

Syntax

JavaScript

p = object.keyCode

 

Property values

Type: Integer

the Unicode key code.

Remarks

The property is used with the onkeydown, onkeyup, and onkeypress events.

The property's value is 0 if no key caused the event.

See also

event

 

 

표시:
© 2014 Microsoft