Which of following codes of an event handler records the exact window position of the mouse pointer as it maneuvers across an element?
A. document.getElementById("element1").onmouseenter = trackPointer;?function trackPointer(e) {var hPos = e.clientX;document.getElementById("element2").innerText;
B. document.getElementById("element1").onmouseclick = trackPointer;?function trackPointer(e) {var vPos = e.clientY;document.getElementById("element2").innerText =" (" + hPos + ", " + vPos + ")";}
C. document.getElementById("element1").onmousemove = trackPointer;?function trackPointer(e) {var hPos = e.clientX;var vPos = e.clientY;document.getElementById("element2").innerText =" (" + hPos + ", " + vPos + ")";}
D. document.getElementById("element1").onmouseup = trackPointer;?function trackPointer(e) {var hPos = e.clientX;document.getElementById("element2").innerText =" (" + hPos + ", " + vPos + ")";}
Answer: C
You might also like to view...
The accompanying figure shows an example of _____ software.
A. paint B. presentation C. publishing D. database
You invoke a function that you create in exactly the same way as you invoke one of Visual Basic's built-in functions.
Answer the following statement true (T) or false (F)
Draw the 2-4 tree that results from adding the following elements into an initially empty tree:
34 45 3 87 65 32 1 12 17
The command that joins selected cells into one larger cell and centers the contents in the merged cell.
A. Orientation B. Wrap Text C. Merge & Center