Q: When a key is pressed, which property is utilised to indicate the type of key?
-
A
keyCode
-
B
keyType
-
C
keyName
-
D
keyProperty
A
Answer:
A
Explanation:
The keyCode property returns either the Unicode character code or the Unicode key code of the key that caused the onkeypress, onkeydown, or onkeyup event.
The key that was pushed is indicated by the numeric keyCode field of the event object connected to these occurrences.
Related Topic:
Share Above MCQ