Created
September 9, 2020 15:42
-
-
Save travis23/ea1aeac36aa41cca39197b26d027723a to your computer and use it in GitHub Desktop.
[Javascript call function every x msec] #javascript #html #delay #sleep #pause #wait
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<script> | |
window.setInterval(function() {myFunction()}, 500) | |
function myFunction() { | |
/* Do stuff */ | |
} | |
</script> | |
</head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment