Re: meta tag

by "Cyanide _7" <leo7278(at)hotmail.com>

 Date:  Thu, 27 Apr 2000 16:58:30 CDT
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
i'd point out that document.referrer is netscape only, but this is for an 
intranet. also, the noscript tag will ensure infinate reloads if js is off. 
my suggestion is to use the search string with a time stamp. the browser 
realizes that the content of the page may rely heavily on the data in the 
search string and caches each such location separately. only if the page 
with the same search string is loaded does it use the cache, which is why we 
use a constanly changing time stamp. this would be implemented from the 
previous page and appended to the href of the page in question. building the 
string would be as such:

function stampTime(href){
  return (href+"?tid="+(new Date()).getTime());
}

- Cyanide_7

>
>Maybe something like this. (untested)
>
><script language="javascript">
>if (document.referrer != window.location.href) {
>document.write('<META HTTP-EQUIV="Refresh"
>CONTENT="5;URL=http://abc.htm">');
>}
></script>
><noscript>
><META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://abc.htm">
></noscript>
>
>Rossi Designs
>PO Box 1084
>Holly Hill, FL 32125-1084
>Phone : (904) 226-8979
>URL : http://rossidesigns.net
>----- Original Message -----
>From: Peter Guse <pgooseman(at)yahoo.com>
>To: <hwg-languages(at)hwg.org>
>Sent: Thursday, April 27, 2000 3:28 PM
>Subject: meta tag
>
>
>| I have the page refreshing after 5 sec but it
>| refreshes itself every 5 sec.  How do I make it stop
>| after the first time or first 5 sec.
>|
>|  <META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://abc.htm">
>|
>| __________________________________________________
>| Do You Yahoo!?
>| Talk to your friends online and get email alerts with Yahoo! Messenger.
>| http://im.yahoo.com/
>|
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA