Button double click | Sololearn: Learn to code for FREE!

+1

Button double click

Can anyone tell me how can i click the button twice and another function is activated...

8/14/2020 11:09:57 AM

Prince Sukhija

9 Answers

New Answer

+9

dblclick https://youtu.be/NrE6675CjhA

+9

https://code.sololearn.com/W7CoVp0xyC4x/?ref=app

+6

Use the ondblclick event listener.

+5

Prince Sukhija spelling mistake, missing a "l" it's db-L-click

+4

Somes events handlers: Onclick Ondblclick Onmousedown Onmouseover

+3

There are two ways to handle events Btn.ondblclick=function(){ //do something } Alternatively Btn.addEventListener('dblclick', function(){ // do something })

+2

browser support ? try update your browser and webview if you are on android maybe a workaround ? https://code.sololearn.com/WGPef2Crz4tM/?ref=app

+1

But nothing happen by applying ondbclick Gordon and Logomonic Learning

+1

Im unable to fit in my codeLogomonic Learning