473,779 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refresh page every 5 minutes

Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.

Thanks for the help.
--
Willem Van der Mescht
ho***@absamail. co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)
Jul 20 '05 #1
7 40206
Willem wrote on 29 jun 2003 in comp.lang.javas cript:
Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.


you could build a framepage
and refresh a frame (theirs) from another hidden one(yours)

something like:

function reload1(){
document.parent .frame[1].location.reloa d()
setTimeout("rel oad1()",300000)
}
setTimeout("rel oad1()",300000)

not tested !!!

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
It's not javascript and I don't know which browsers support it but
you can put the following in the header:
<meta http-equiv="refresh" content="600">

Mike Johnston
Jul 20 '05 #3
You can also use the meta tag in the head ie. <meta http-equiv="refresh"
content="number of seconds"; url="nextpage.h tml>"
Jul 20 '05 #4
<html><head><ti tle>a title</title>
<meta http-equiv="refresh" content=300>
</head>
<body>
content
</body>
</html>
-----Original Message-----
From: Willem [SMTP:ho***@absa mail.co.za]
Posted At: Sunday, June 29, 2003 10:57 AM
Posted To: comp.lang.javas cript
Conversation: Refresh page every 5 minutes
Subject: Refresh page every 5 minutes

Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines
of
having a HTML file on my C-drive with JavaScript to do so. It should
be
possible, Right?

I don't know much about JavaScript.

Thanks for the help.
--
Willem Van der Mescht
ho***@absamail. co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)


Jul 20 '05 #5
Thanks for the efort you've put in to help me. This is perfect.

Willem Van der Mescht
ho***@absamail. co.za
http://myweb.absamail.co.za/horsy
(If there were more horses around
the world would be more stabilised)

PS Sorry Lasse, didn't mean to use your E-mail address, it was ment to go to
the group.
"Lasse Reichstein Nielsen" <lr*@hotpop.com > wrote in message
news:ad******** **@hotpop.com.. .
"Willem" <ho***@absamail .co.za> writes:
Can someone tell me how I can get a page(any page) on the Internet to
refresh automatically every 5 minutes. I was thinking along the lines of
having a HTML file on my C-drive with JavaScript to do so. It should be
possible, Right?

I don't know much about JavaScript.
Try something like this:
--- reloader.html ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Reloader !</title>
</head>
<frameset rows="30, *">
<frame name="input" src="reloaderIn put.html">
<frame name="page" src="about:blan k">
</frameset>
</html>
------

--- reloaderInput.h tml ---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>input</title>
<script type="text/javascript">
var interval = undefined;
function go(){

parent.frames['page'].location.href= document.forms[0].elements['url'].value; }
function start(form) {
if (interval) {clearInterval( interval);}
var time = parseFloat(form .elements['time'].value);
interval = setInterval(go, Math.floor(time *1000));
go();
}
function stop() {
if (interval) {
clearInterval(i nterval);
interval=undefi ned;
}
}
</script>
</head>
<body>
<div>
<form target="page" action="" onsubmit="start (this);return false;">
<label for="url">URL:< input type="text" id="url"></label>
<label for="time">Freq uency in seconds<input type="text" id="time"></label> <input type="submit" value="Go!">
<input type="button" value="Stop" onclick="stop() ">
</form>
</div>
</body>
</html>
------

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #6
On Tue, 01 Jul 2003 20:58:38 +0200, Willem wrote:
Thanks for the efort you've put in to help me. This is perfect.

"Lasse Reichstein Nielsen" <lr*@hotpop.com > wrote in message
news:ad******** **@hotpop.com.. .
"Willem" <ho***@absamail .co.za> writes:
> Can someone tell me how I can get a page(any page) on the Internet to
> refresh automatically every 5 minutes. I was thinking along the lines
> of having a HTML file on my C-drive with JavaScript to do so. It
> should be possible, Right?
>
> I don't know much about JavaScript.


Refreshing an entire page on an interval doesn't require scripting it can
be accomplished with a straight HTML META tag, the exact syntax of which
escapes me at the moment.

<META REFRESH='60000' > Something like that. Anyone have the exact syntax?
--
i.m.
All views, opinions and alleged facts expressed by this tactless moron are
protected by the constitution of the United States of America and should be
taken as good natured and friendly unless specifically stated otherwise.

Jul 20 '05 #7
harinda
1 New Member
just try this out



window.setTimeo ut(' window.location ="URL"; ',5000);


:)

Harinda
Jul 6 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8378
by: SPQR | last post by:
Some time ago I set up a webcam at home and a page on my site. Every three minutes the webcam would take a picture of my backyard and ftp it to my site where it was displayed on my webcam page. The image was ftp'ed to ftp://mydomain.org/webcam.jpg. On my website was a file, webcam.htm, that had a place for the image, webcam.jpg. I put an HTML code on my webcam page that caused it to refresh every 3 minutes -- every 3 minutes, the...
2
6918
by: Rob Evans | last post by:
I have two websites.... I would like to create a frame on a page on website#1, which shows a page from website#2 Furthermore, I would like the frame on website#1 to refresh every 5 minutes or so. I have HTML, ASP, VBSCRIPT and JAVASCRIPT at my disposal.
4
647
by: Alejandro Narancio | last post by:
Hi, i have this situation. One page open another page in a separated instance of the browser, i neek to refresh every five minutes the first page but without take the focus, anybody know how can i do that? I wanna try to explain with an example, i have to pages A.html and B.html, the page A open the page B in a separated intance of the browser, i need to refresh the page A every five minute. Actually i doing with the setTimeout...
2
8580
by: Jarson | last post by:
My webserver hosts some on-line reports with live data. I have put an html meta tag to force the client to refresh every 10 minutes so my clients will always show the latest data .. <meta http-equiv="Refresh" content="600" /> However, once or twice every day my IP address changes or my WAN link may be inaccessible for a couple of minutes. If the client refresh occurs during the period that my host is down or DNS entry is updating...
0
473
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem shortly, so I don't take too much of your time. Problem:
10
23419
by: Fred Nelson | last post by:
Hi: I have a VB.NET web application and I need to find a way to cause a page refresh from within my application. Does anyone know how to force the browser to refresh the current page? Thanks very much for your help! Fred
8
9400
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE window to refresh, based on its caption. For example, there is a web site that I want to keep active where I normally have to refresh it manually before it times out (every 15 min or so). I might be doing something else at the time so I don't...
10
32884
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page. Thanks all
10
2743
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10071
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9925
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7478
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5501
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.