Answers for "inner html templates"

0

inner html templates

function log(msg) {
  var logElem = document.querySelector(".log");
 
  var time = new Date();
  var timeStr = time.toLocaleTimeString();
  logElem.innerHTML += timeStr + ": " + msg + "<br/>";
}

log("Logging mouse events inside this container...");
Posted by: Guest on May-01-2020

Browse Popular Code Answers by Language