mytime is the timer id we defined while activating the timer( please see the part 1 of this tutorial). It must be exactly same as one used in setTimeout function as it identify the timer with this.
setTimeout function sets the timer and executes it after the set time, before that if we want to cancel or reset the timer then we must use the clearTimeout function with timer id.
Now we will use the same domo ( in Timer Set of part 1 ) with the additional reset button for the timer. Here is the demo.
No reminder After 2 Secs After 5 Secs After 10 Secs
Now here is the code to be used inside your head tags
This is the code we used for displaying the period buttons
Be the first to post comment on this article :