+ 1

Button double click

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

14th Aug 2020, 11:09 AM
Prince Sukhija
Prince Sukhija - avatar
9 Antworten
14th Aug 2020, 11:24 AM
Gordon
Gordon - avatar
+ 9
https://code.sololearn.com/W7CoVp0xyC4x/?ref=app
14th Aug 2020, 11:56 AM
Arnesh
Arnesh - avatar
+ 6
Use the ondblclick event listener.
14th Aug 2020, 11:24 AM
Logomonic Learning
Logomonic Learning - avatar
+ 5
Prince Sukhija spelling mistake, missing a "l" it's db-L-click
14th Aug 2020, 3:14 PM
Gordon
Gordon - avatar
+ 4
Somes events handlers: Onclick Ondblclick Onmousedown Onmouseover
15th Aug 2020, 10:39 PM
Valen Boada
Valen Boada - avatar
+ 3
There are two ways to handle events Btn.ondblclick=function(){ //do something } Alternatively Btn.addEventListener('dblclick', function(){ // do something })
14th Aug 2020, 11:45 AM
Logomonic Learning
Logomonic Learning - avatar
+ 2
browser support ? try update your browser and webview if you are on android maybe a workaround ? https://code.sololearn.com/WGPef2Crz4tM/?ref=app
14th Aug 2020, 12:28 PM
Taste
Taste - avatar
+ 1
But nothing happen by applying ondbclick Gordon and Logomonic Learning
14th Aug 2020, 11:38 AM
Prince Sukhija
Prince Sukhija - avatar
+ 1
Im unable to fit in my codeLogomonic Learning
14th Aug 2020, 11:49 AM
Prince Sukhija
Prince Sukhija - avatar