refresh element

K

Kat

I know you can add a refresh tag within the body, but you
have to set a repeating interval. Is there a way that I
can just insure that when a person clicks on the page
(the home page in this case), that the page is up-to-
date? In other words, I would like it to only refresh
once, upon loading. When I set the number to 0, it keeps
refreshing every second. Thanks!
 
K

Kevin Spencer

Hi Kat,

I'm afraid you're using the wrong directive. Try the following, added to the
<head> section of your page:

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

This prevents the browser from caching the document, so it always fetches a
fresh copy.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Similar Threads

Auto refresh browser until change? 15
Refresh 6
refresh 1
Refresh A Page 1
refresh code in windows media media player 3
Outdated Web Page 1
meta tag 1
Auto Refresh and maintain scroll position 3

Top