Difference between revisions of "Bot Playground/Built-in Functions/Timer control"

From SmartBots Developers Docs
Jump to: navigation, search
 
Line 6: Line 6:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
You can use standard JavaScripttimer routines:  
+
You can use standard JavaScript timer routines:  
 
* [https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout setTimeout()]
 
* [https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout setTimeout()]
 
* [https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/clearTimeout clearTimeout()]
 
* [https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/clearTimeout clearTimeout()]

Latest revision as of 20:56, 6 October 2022

Standard timer control routines of JavaScript: setTimeout, setInterval etc.

setTimeout(function() { console.log("This is a timer event!"); }, 5000);

You can use standard JavaScript timer routines: