Free Auto Refresh Page Script for Blogger and WordPress

Auto Refresh Page Script

Are you working on a live score website or a site like this that needs to be refreshed after some time? How good it is the page will automatically refresh and visitors will see the updated value/data. The auto refresh page script is waiting for you. It’s a FREE javascript for your page with help of which your page or post can be reloaded after some time.

How to Use Auto Refresh Page script on your page?

How to use it in Blogger?

I have provided a javascript at the end of the article, you have to copy it and paste it into your blogger post or page. But keep in mind that you have changed your post editor to an HTML view.

Put this code on that page that you want to be refreshed after a certain time.

How to use it in WordPress?

In the case of WordPress, there are two methods.

In the case of Classic editor, you have to switch to text view instead of visual view, and put the code at the start or end of the page.

In the case of the Gutenberg editor, you have to select the code widget and paste the following code in it and publish your post or page.

Blogger VS WordPress Which to choose an Ultimate Guide.

Auto Refresh Page Script

 <script type = "text/JavaScript">
        
            function AutoRefresh( t ) {
               setTimeout("location.reload(true);", t);
            }
         
      </script>
      
   
   <body onload = "JavaScript:AutoRefresh(4000);">
      <p>This page will refresh every 4 seconds.</p>
</body>

The code is set to auto-refresh after every 4 seconds, but if you want less or more time to be refreshed check the number in the body tag of the code and edit it accordingly (keep in mind 1 second = 1000).

Auto Refresh Page Script FAQs

How To Auto Refresh Page?

There is a very simple and lighter java script provided in this article. Use it in your page and your page will be refreshed automatically after the interval you set.

How to Change Time Interval?

The code is set to auto-refresh after every 4 seconds, but if you want less or more time to be refreshed check the number in the body tag of the code and edit it accordingly (keep in mind 1 second = 1000).

I hope you enjoyed this post. Recommend this to your friends and comment for your kind suggestions.

1 thought on “Free Auto Refresh Page Script for Blogger and WordPress”

Leave a Comment

Your email address will not be published. Required fields are marked *

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.