-
onclick Unclick?
hi,
It is easy to start and stop an event in VB by clicking the same button twice...How is it in Javascript?
vb code:
------------------------
timer1.enabled=Not(timer1.enabled)
-----------------------------------
when we press command1 button once timer starts and when we
press it twice timer1 stops
Is it possible in Javascript? does onclick/Unclick evnent work?
thanks
-
set a boolean flag to false
if flag = false, run on if
after first click it becomes true
then next time it'll not be flase, so it'll run another section.