Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match the column JavaScript-Events with the column Descriptions.

JavaScript-EventsDescriptions
a) onchangei) The browser has finished loading the page.
b) onmouseoverii) An HTML element has been changed.
c) onkeydowniii) The user moves the mouse over an HTML element.
d) onloadiv) The user pushes a keyboard key.

  • A.a-ii, b-iii, c-iv, d-i
  • B.a-iii, b-ii, c-iv, d-i
  • C.a-ii, b-iv, c-iii, d-i
  • D.a-iv, b-iii, c-i, d-ii

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.