Home | History | Annotate | Download | only in resources
      1 <script>
      2 var count = 1;
      3 function 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 
     11 setInterval(run, 1000);
     12 </script>
     13