Binod's Blog

Tag: refresh

Auto refresh page

by 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…

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...