javascript - How can I run a js function between 2 times -
i made countdown timer runs in regular interval times .ie every hour wanted timer run between 2 times let's between 5am , 11pm every day.
i think, timer performs code every hour, , shall executed between times every day. make if-statement @ beginn of function check time @ every execution , break execution if time not correct, can cancel execution.
Comments
Post a Comment