ȸ¿ø·Î±×ÀÎ
Å°º¸µå event.keyCodeÀÇ ¼ýÀÚÇ¥
18³â Àü
¾È³çÇϼ¼¿ä.
event.keyCode¸¦ »ç¿ëÇϽô ºÐµéÁß¿¡¼ Äڵ带 ¸ô¶ó¼ ¸ø¾²½Ã´Â ºÐµéÀÌ ÀÖÀ»°Í
°°¾Æ¼ ¿Ã¸³´Ï´Ù. ºÐ¸íÈ÷ ¸»¾¸µå¸®Áö¸¸ ¾Æ½Ã´Â ºÐµéµµ °è½Ç°Ì´Ï´Ù.
¸ð¸£´Â ºÐµéÀ» À§ÇØ ¿Ã¸®´Â °ÍÀÔ´Ï´Ù. Ȥ½Ã³ª ¾Æ½Å´Ù°í ¿å¾²°í ±×·¯Áö ¸¶½Ê½Ã¿ä.
Àú¹ø¿¡µµ ¾Ë°í¸®Áò Çϳª ¿Ã·È´Âµ¥ ¿å¹«Áö¾²¼Å¼ ¼Ó»óÇß½À´Ï´Ù..¤Ð¤Ð
±×·³ Áñ°Å¿îÇÏ·ç µÇ½Ã°í...
±×¸®°í Äڵ带 ¾Ë¾Æ³¾¼öÀÖ´Â ¹æ¹ýÀº ´ÙÀ½°ú °°½À´Ï´Ù.
<html>
<head>
<script>
function key_check(){
alert("Å°¹øÈ£´Â [" +event.keyCode+ "] ÀÔ´Ï´Ù.");
}
</script>
</head>
<body onKeyDown='key_check();'>
¾Ë°í½ÍÀº Å°Æе带 ²Ë! ´·¯ÁÖ¼¼¿ä...¤Ñ¤Ñ;
</body>
</html>
=================================================================
Å° | ÄÚµå(¼ýÀÚ)
=================================================================
¡ç(¹é½ºÆÐÀ̽º) = 8
TAB = 9
ENTER = 13
SHIFT = 16
CTRL = 17
ALT = 18
PAUSEBREAK = 19
CAPSLOOK = 20
ÇÑ/¿µ = 21
ÇÑÀÚ = 25
ESC = 27
½ºÆÐÀ̽º = 32
PAGEUP = 33
PAGEDN = 34
END = 35
HOME =36
¡ç(Áß°£) = 37
¡è(Áß°£) = 38
¡æ(Áß°£) = 39
¡é(Áß°£) = 40
INSERT = 45
DELETE = 46
0 = 48
1 = 49
2 = 50
3 = 51
4 = 52
5 = 53
6 = 54
7 = 55
8 = 56
9 = 57
A = 65
B = 66
C = 67
D = 68
E = 69
F = 70
G = 71
H = 72
I = 73
J = 74
K = 75
L = 76
M = 77
N = 78
O = 79
P = 80
Q = 81
R = 82
S = 83
T = 84
U = 85
V = 86
W = 87
X = 88
Y = 89
Z = 90
À©µµ¿ì(¿ÞÂÊ) = 91
À©µµ¿ì(¿À¸¥ÂÊ) = 92
±â´ÉÅ° = 93
0(¿À¸¥ÂÊ) = 96
1(¿À¸¥ÂÊ) = 97
2(¿À¸¥ÂÊ) = 98
3(¿À¸¥ÂÊ) = 99
4(¿À¸¥ÂÊ) = 100
5(¿À¸¥ÂÊ) = 101
6(¿À¸¥ÂÊ) = 102
7(¿À¸¥ÂÊ) = 103
8(¿À¸¥ÂÊ) = 104
9(¿À¸¥ÂÊ) = 105
.(¿À¸¥ÂÊ) = 110
/(¿À¸¥ÂÊ) = 111
*(¿À¸¥ÂÊ) = 106
+(¿À¸¥ÂÊ) = 107
-(¿À¸¥ÂÊ) = 109
F1 = 112
F2 = 113
F3 = 114
F4 = 115
F5 = 116
F6 = 117
F7 = 118
F8 = 119
F9 = 120
F10 = 121
F11 = 122
F12 = 123
NUMLOCK = 144
SCROLLLOCK = 145
=(Áß°£) = 187
-(Áß°£) = 189
`(¿ÞÂÊÄÞ¸¶) = 192
\(Áß°£) = 220
̵̧ : 563
̵̧
¸ñ·Ï