in Education by
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 This question was addressed to me in homework. The above asked question is from Text Events topic in division Document Object Model and Event Handling in Javascript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right option is (a) clientX and clientY Best 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.

Related questions

0 votes
    Which of these methods will respond when you click any button by mouse? (a) mouseClicked() (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these methods are used to register a mouse motion listener? (a) addMouse() (b) addMouseListener( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    When are the mouse events generated? (a) When user clicks the mouse over a document (b) When user ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How to detect and respond to mouse drags? (a) Registering a mouseover handler (b) Releasing a mousedown ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these methods is used to get x coordinate of the mouse? (a) getX() (b) getXCoordinate() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which tag can handle mouse events in Netscape? (a) img (b) a (c) br (d) src The question ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    What are the properties supporting CSS styles for a document element? (a) style and font (b) style ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...