0

Hello, how can I make the necessary code on the second and third click

Hello, how can I make the necessary code on the second and third click https://greasyfork.org/scripts/374750-randstuff-ru/code/Randstuffru.user.js

6th Jun 2020, 3:37 PM
Дондон
Дондон - avatar
3 Respostas
+ 2
For double click instead of onClick attribute there can be used ondblclick="function-name".
6th Jun 2020, 4:01 PM
Aman Kumar
Aman Kumar - avatar
0
how can this be done where should this be written?
6th Jun 2020, 9:31 PM
Дондон
Дондон - avatar
0
Like if you are using double click on a button then in html write <button dblclick="functionName()">Button</button> functionName depends what you keep your functions name which will be called when double clicked the button.
11th Jun 2020, 10:35 AM
Aman Kumar
Aman Kumar - avatar