Created
September 9, 2020 15:47
-
-
Save travis23/2bd2737184d3326a9af9ebf3782b39d9 to your computer and use it in GitHub Desktop.
[Javascript wait before carrying out command] #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> | |
function flashBackground() { | |
document.getElementById("element").style.background = 'White'; | |
setTimeout(() => {document.getElementById("element").style.background = 'Yellow';}, 100) | |
} | |
</script> | |
</head> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment