In Association with Amazon.in   Flipkart

Monday, July 6, 2020

Refresh The WebPage Every Some Given Seconds Using JavaScript/Jquery


If we want to refresh the webpage every time after the given time, For that we can by using JavaScript/Jquery method:






<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
   var auto_refresh = setInterval(
      function ()
      {
         $('#load_tweets').load('record_count.php').fadeIn("slow");
      }, 10000); // refresh every 10000 milliseconds
</script>

<body>
     <div id="load_tweets"> </div>
</body>

</script>


No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...