How to Continuously Refresh Visited Page every 10 min

J

John

Hi,
I want to refresh a visited page (say Yahoo) automatically every (say) 10
secs.

I tried the following in the head section, which did not work:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHMTL 1.0 Transitional//EN"
"http://www.w3.org/TR/xhmtl1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3org/1999/xhtml">

<head> <meta http-equiv="content-type"
content="text/html;charset=utf-8" />

<title> Yahoo </title>

</head><body>

<p><h1> <center> Yahoo </h1> </p>

<a href="http://www.yahoo.com"> Yahoo </a>
<meta http-equiv="Refresh" content="10; index.htm">

</body></html>

When I open my own web page, I hear every 10 secs a "click" which appears to
indicate that the timer is activated, but nothing more shows than the
pagename with the Yahoo link .
When I select the link, the Yahoo webpage shows, but is not updated every 10
sec (I don't hear the 10 sec "click" any more either!).

What do I change to make this work?

Thanks,

John
 
M

Mark Fitzpatrick

John,
It doesn't work this way. The meta tag is only usable in within the
header for your document and only applies to your page. The browser is
simply correcting the placement of it, moving the interpreted placement of
it into the document header, and refreshing every ten seconds. You can't
govern how any page other than the one you are on is being viewed.

Now that that has been said, we can try it a different way.

Create a frameset instead. Make one of the frames in the page point
to www.yahoo.com. Then, add your meta tag into the header for the frameset.

<html>
<head>
<title>Framed Page</title>
<meta http-equiv="Refresh" content="10">
</head>
<frameset rows="*">
<frame name="Content" scrolling="no" noresize target="Content">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>

Technically, it's the frameset that's refreshing and it's just
bringing the yahoo web page along for the ride.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
J

John

Thanks Mark,
It works fine now!

Regards,

John

Mark Fitzpatrick said:
John,
It doesn't work this way. The meta tag is only usable in within the
header for your document and only applies to your page. The browser is
simply correcting the placement of it, moving the interpreted placement of
it into the document header, and refreshing every ten seconds. You can't
govern how any page other than the one you are on is being viewed.

Now that that has been said, we can try it a different way.

Create a frameset instead. Make one of the frames in the page point
to www.yahoo.com. Then, add your meta tag into the header for the frameset.

<html>
<head>
<title>Framed Page</title>
<meta http-equiv="Refresh" content="10">
</head>
<frameset rows="*">
<frame name="Content" scrolling="no" noresize target="Content">
</frameset>
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>

Technically, it's the frameset that's refreshing and it's just
bringing the yahoo web page along for the ride.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top