Which two events will have the generated text for key events?
Which two events will have the generated text for key events? 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).