setInterval(): DEMO
<html>
<head>
<title>Demo of SetInterval JavaScript function</title>
<script language=javascript>
function to_start(){
tm=window.setInterval('disp()',1000);
}
function disp(){
document.getElementById('n1').innerHTML += ' plus2net.com ';
}
</script>
</head>
<body >
<input type="button" name="btn" value="Start" onclick="to_start()";>
<div id='n1'></div><BR>
</body>
</html>
← setInterval() clearInterval() →
← Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
plus2net.com