Answers for "how to update html before alert"

0

how to update html before alert

function colorChange() {
  document.getElementById('word').style.color = "red";
  setTimeout(function() {
  	alert("color changed!");
  },10)
}
Posted by: Guest on August-20-2021

Code answers related to "how to update html before alert"

Browse Popular Code Answers by Language