+ 5

Firing an event when clicked second time

I was just wondering that is there any way we can fire an event when a div is clicked every second time or when it is clicked alternatively

30th May 2018, 1:08 PM
Ayush
Ayush - avatar
2 Antworten
30th May 2018, 3:42 PM
Calviղ
Calviղ - avatar
+ 3
Hum... I don't really know but I have been trying to simulate something alike. Didn't check out the web to see what was suggested but what occured to me is nested event handlers. Say you have something.onclik(.....) then inside you also have something.onclick() and that is actually where stuff happens... Intuitively I feel it might work. I haven't tried it so I don't know for sure but might be worth a try...
30th May 2018, 2:15 PM
cyk
cyk - avatar