Vidyalelo
JavaScript · Q103

Document Object Model And Event Handling

Programming · JavaScript · question 103

Q103

Which property is used to specify the key type when pressed?

A.
keyCode
Answer
B.
keyType
C.
keyName
D.
keyProperty

Answer: Option A

Solution

Answer: Option A
Solution:
The event object associated with these events has a numeric keyCode property that specifies which key was pressed.