in Education by
How to detect and respond to mouse drags? (a) Registering a mouseover handler (b) Releasing a mousedown handler (c) Registering a mousedown handler (d) Releasing a mouseover handler I got this question in class test. Question is taken from Text Events topic in chapter 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
The correct choice is (c) Registering a mousedown handler To elaborate: By registering a mousedown handler that registers a mousemove handler, you can detect and respond to mouse drags. Doing this properly involves being able to capture mouse events so that you continue to receive mousemove events even when the mouse has moved out of the element it started in.

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
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
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
    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
    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
    How does applet and servlet communicate? (a) HTTP (b) HTTPS (c) FTP (d) HTTP Tunneling I have ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    How do we create and preload an image object in JavaScript? (a) Use new keyword (b) Call Image() ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How does the client and the server communicate following the rules defined by the WebSocket protocol? (a) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...