Match the column JavaScript-Events with the column Descriptions.
| JavaScript-Events | Descriptions |
|---|---|
| a) onchange | i) The browser has finished loading the page. |
| b) onmouseover | ii) An HTML element has been changed. |
| c) onkeydown | iii) The user moves the mouse over an HTML element. |
| d) onload | iv) The user pushes a keyboard key. |
DSSSB TGT - 2023,
Answer: A
The correct match is a-ii, b-iii, c-iv, d-i. The onchange event fires when an HTML element has been changed, onmouseover when the user moves the mouse over an HTML element, onkeydown when the user pushes a keyboard key, and onload when the browser has finished loading the page. Every other option exchanges at least one of these pairs, for example giving onload to a keyboard action. A simple way to remember is that the name of each event states what happens: change, mouse over, key down and load.
Please log in or register to report this question.