Forum Moderators: open

Message Too Old, No Replies

refresh the same page only once -- howto?

         

webdesignerq

4:29 pm on Apr 18, 2004 (gmt 0)



I want to use this code in the <head> </head> of my page:
<META HTTP-EQUIV="Refresh" CONTENT="1;URL=samepage.php">
why?

to refresh the page when loading into my browserwindow only once and as fast as possible.

How do I prevent the page from looping and refreshing and is this usable in all browsers?

How to set the CONTENT="....?
Is 1 equal to? 1 sec or one time?

[edited by: tedster at 6:12 pm (utc) on April 18, 2004]
[edit reason] fix typo [/edit]

Solution1

5:52 am on Apr 19, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



To refresh only once, you'll have to redirect to another page with the same content, if you'd want to use this metatag.
The number is the number of seconds. You can set it to 0 for an immediate redirect.

But why do you want to refresh the page? Perhaps there's another way to achieve the same aim.

Purple Martin

6:33 am on Apr 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want to prevent the page from being cached there's this:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

webdesignerq

1:51 pm on Apr 19, 2004 (gmt 0)



what means pragma then in the meta tags

Purple Martin

11:12 pm on Apr 19, 2004 (gmt 0)