Tag: refresh
Auto refresh page
by Binod on Dec.12, 2010, under Javascript, Tutorial
Here i tried to explains how to refresh the page in a certain interval of time. Sometime you need to refresh the page automatically while using the session. You need to load the latest content automatically . So the webpage needs to be refreshed.
Sample code
<script type=”text/JavaScript”>
function autoRefresh(timeToRefresh) {
setTimeout(“location.reload(true);”,timeToRefresh);
}
</script>
<p><a href=”javascript:autoRefresh(1000)”>Refresh page in 1 sec</a></p>
Hope this will help u a lot…