Single Choice Easy

QWhen a key is pressed, which property is utilised to indicate the type of key?

ID: #5174 Javascript DOM & Event Handling MCQ 139 views
Question Info
#5174Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A keyCode
  • B keyType
  • C keyName
  • D keyProperty
Correct Answer

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.

Share This Question

Challenge a friend or share with your study group.