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


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com







    Post your comments , suggestion , error , requirements etc here




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