Choose Your Language

Thursday 19 May 2016

refresh web page automatically in 600 milli seconds using java script and jquery

<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script type="text/javascript">
var i=0;
setInterval(function() {

    /* can write AJAX code here. */

$('#id-body').text("Invoked "+(i++));
}, 600);

</script>
 
    </head>
    <body>
    <div id="id-body">
    body of html page
    </div>
 </body>
 </html>