Single Choice Easy

QThe properties that define the mouse's position and button state are

ID: #5153 Javascript DOM & Event Handling MCQ 148 views
Question Info
#5153Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A clientX and clientY
  • B clientY and clientX
  • C altKey and ctrlKey
  • D metaKey and shiftKey
Correct Answer

Explanation

The clientX and clientY properties define the mouse's position in window coordinates.
When a mouse event is triggered, the clientX property returns the horizontal coordinate (according to the client area) of the mouse pointer.
ClientY, on the other hand, returns the vertical coordinates.

Share This Question

Challenge a friend or share with your study group.