Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to update html before alert

function colorChange() {
  document.getElementById('word').style.color = "red";
  setTimeout(function() {
  	alert("color changed!");
  },10)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #html #alert
ADD COMMENT
Topic
Name
4+7 =