I have script like below.
if i refresh a page before (3 Minutes)setTimeout, get_details function call will work or not?
setTimeout(function() {
get_details(user);
}, 18000);
If you refresh while the timer is running it will start all over again when the page reloads.
So to answer your question, yes the get_details() function will be called after the refresh but only after the full 3 minutes has elapsed since the refresh occurred.
It depends when you invoke the setTimeout:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With