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



plus2net.com










We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer