Prevent Default Single Click Event On Double Click On A Link In Html
My code is pretty simple: var clickCount = 0, clickEl = []; var manualClick = false; $(document).on('click', 'a', function (e) { if (e.altKey || e.ctrlKey || e.shiftKey) {
Solution 1:
I think you're looking for the dblclick
javascript event. It's usable on all updated browsers currently.
There's already a post here: Detect if browser/device supports double click events to detect if it's supported by using a timeout to check if there is an another click after the first click.
Post a Comment for "Prevent Default Single Click Event On Double Click On A Link In Html"