Vidyalelo
JavaScript · Q101

Document Object Model And Event Handling

Programming · JavaScript · question 101

Q101

When are the keyboard events fired?

A.
When user manually calls the button
B.
When user clicks a key
Answer
C.
When the user calls the modifier
D.
All of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The keydown and keyup events are fired when the user presses or releases a key on the keyboard. They are generated for modifier keys, function keys, and alphanumeric keys.