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...
When you select a subform control, an orange border appears around the control and the ________ appears in the top-left corner
Fill in the blank(s) with correct word
What type of file does Access create when exporting to Word?
A) RTF B) HTML C) DOCX D) JPEG