Which two events will have the generated text for key events?
A
key and char
B
char and text
C
text and key
D
key and value
Correct Answer: key and char
For key events that generate printable characters, key and char will be equal to the generated text. Both key and char are onkeypress event which occurs when the user presses a key (on the keyboard).