<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
<script>
var i=0;
var t;
  function test(str) {
  alert(str);
//   document.getElementById("test1").innerHTML+="11"+str;
   i++;
   
  }
  function init() {
    t= setInterval(function(){test("333333")},1000);
  }
</script>
 </HEAD> <BODY οnlοad="init();">
  <p id="test1"></p>
 </BODY>
</HTML>