+ 1

How do I run a JavaScript code after a few minutes it is called.

3rd Dec 2016, 2:20 PM
Twaha Rahman
Twaha Rahman - avatar
7 Réponses
+ 1
setTimeout(function,time in ms)
4th Dec 2016, 8:48 PM
Robert Kopydłowski
Robert Kopydłowski - avatar
0
I want automated calling
3rd Dec 2016, 3:11 PM
Twaha Rahman
Twaha Rahman - avatar
0
But where?
3rd Dec 2016, 3:19 PM
Ondřej Doněk
Ondřej Doněk - avatar
0
in Ajax after every 5 minutes
3rd Dec 2016, 3:20 PM
Twaha Rahman
Twaha Rahman - avatar
0
So on web page you have used some Ajax and you want to be executed repeatedly... Use Windows.setInterval(callback, delay)
3rd Dec 2016, 3:23 PM
Ondřej Doněk
Ondřej Doněk - avatar
0
Thanks bro!
3rd Dec 2016, 4:48 PM
Twaha Rahman
Twaha Rahman - avatar
- 1
Your question is unclear - you are looking just on delayed start or new automatic calling? In web or Node.js or what platform?
3rd Dec 2016, 2:30 PM
Ondřej Doněk
Ondřej Doněk - avatar