The properties that specify the position and button state of the mouse are _________

The properties that specify the position and button state of the mouse are _________
A. clientX and clientY
B. clientY and clientX
C. altKey and ctrlKey
D. metaKey and shiftKey
 
Answer: a
Explanation: The clientX and clientY properties specify the position of the mouse in window coordinates. The clientX property returns the horizontal coordinate (according to the client area) of the mouse pointer when a mouse event was triggered. Similarly clientY returns the vertical coordinates.
 

Tìm kiếm

Back
Top