1<script> 2var count = 1; 3function run() { 4 var div = document.createElement("div"); 5 div.textContent = "Testing " + (count++); 6 document.body.appendChild(div); 7 if (count > 10) 8 document.body.removeChild(document.body.firstChild); 9} 10 11setInterval(run, 1000); 12</script> 13