Click to See Complete Forum and Search --> : refresh a page
GTatler
03-18-2003, 07:24 AM
I want a link to refresh a page when loaded as my users use Outlook (no refresh button) to view the page from our Intranet and it contains information about network resourses - which must be current - hence the need to refresh. Can anyone help please ?
requestcode
03-18-2003, 07:31 AM
Try this:
<A HREF="javascript:window.location.reload()">Refresh</A>
You could try adding this to the <head> of the page that you need to be kept current:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
GTatler
03-18-2003, 07:37 AM
Pyro - many thanks - works like a dream
GTatler
03-18-2003, 07:39 AM
IS it also possible to get the display to refresh (say) every 60 seconds as well ?
Sorry if this is rather a basic question, but I am new to scripting
Add this to your head section:
<script language="javascript" type="text/javascript">
setInterval("winrefresh()", 60 * 1000);
function winrefresh()
{
window.location.reload();
}
</script>