When a pointing device button (such as a mouse's primary button) is double-clicked, that is, when it is swiftly clicked twice on a single element in a short period of time, the dblclick event is triggered. After two click events, dblclick fires (and by extension, after two pairs of mousedown and mouseup events)
The event listener dblclick can be used in JavaScript to detect double clicks. All recent desktop/laptop browsers, including Internet Explorer 11, support the dblclick event. Unfortunately, it is not yet available on all mobile devices.
jQuery code to disable the webpage's double-click event. This post should be active. Use addEventListener(event, function, useCapture) to disable any mouse click action. Call this function on click.
Vanillajs, There are none.
Wait for the setTimeout to finish before handling the click or doubleclick handler.
When you double-click, the click handler is fired first, followed by the doubleclick handler.
Learner's Ratings
4.8
Overall Rating
80%
18%
0%
2%
0%
Reviews
M
Mohammad Arif
5
very helpful for beginners
A
Ankit Singh
5
good
R
Rajendra Deshmukh
5
Thank you for providing a valuable and well-managed session
S
SHIROYA RAJAN
5
nice cource
A
Abhishek Kumar
5
Best platform of learning.
A
Anmol
5
Best courses ever.True words
T
tejas jagtap
5
best
A
Anmol
5
I have completed this course . This is the best course to learn javascript with easy explanation. Thanks LearnVern for this course.
Share a personalized message with your friends.