How to make a auto refresh blog page
This Blogger tutorial discusses How to Auto Refresh a Blog by using the Auto Refresh Meta Tag. This Meta Tag serves to reload website page views. Usually auto refresh is used for the web who often make changes of their content. For example, news sites, forum sites, or classifieds sites.
The auto refresh meta tag is also used by some site owners to increase the number of page views of their pages, especially for ad publishers.
There are two ways to make a blog page automatically reload. The first one uses the help of Javascript code, and the second, uses the auto refresh Meta tag.
Meta tags are elements or tags in the HTML or XHTML programming language that have the function of providing metadata information from a web page.
The Auto Refresh meta tag is a meta tag that functions to provide information to the browser to reload web pages within a predetermined time.
How to make a auto refresh blog page
Install Auto Refresh blog page using Meta Tag
Please copy the meta tag code below, then save the code after the <head> code or before the </head> code on your blog template.
<meta http-equiv="refresh" content="90">
The number "90" represents the amount of time it took the browser to reload the blog page. if my friend wants to make the page reload every 5 minutes, then use the number "300"
Install Auto Refresh blog page using Javascript
Please copy the javascript code below, then save the code after the <head> code or before the </head> code on the blog template.
<script>
<!--
var limit="5:00"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1}
function beginrefresh(){
if (!document.images)
return
if (parselimit==1)
window.location.reload()
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!"
else
curtime=cursec+" seconds left until page refresh!"
window.status=curtime
setTimeout("beginrefresh()",1000)}}
window.onload=beginrefresh
//-->
</script>
Look at the code var limit = "5:00". this code is the time when the web page will reload again. please change it as you wish, friend.
From the two methods above, my friend can try one of them. Although their methods are different, they both serve to reload website pages. That's all about How to make auto refresh blog page, hopefully it will be useful for you. If there is anything you want to ask, please ask via the comments column below, thank you and have a good day.