So basically I want to show a countdown, maybe from one minute or so and then right when the countdown reaches zero I want to run a jQuery function.
So let's say the countdown starts at 1 minute.
So I want to run a function called updateEntry()
after the user has essentially spent 1 minute on the page. I've seen people use setTimeout
, would I simply put my function definition there or would I call the function there? Also how would I go about synchronizing the countdown with setTimeout