Refresh page java script
Use this below code in your HTML Head section.
| The web development requires basic techniques to develop the best web site for your agency. The web site design needs guide in web template in order to enhance best design for your personal website. Companies have launched their advertising agencies that have different techniques for affiliate marketing. The software scripts help the computer literate to develop different software’s. The wireless speakers enhance the wireless technologies and its use. The business wifi is providing best wireless technologies to the world. Similarly verizon wireless is also providing best technologies and accessories of wireless internet. |
<script>
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="0:5"
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 you want to display a message in status bar
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> |