Re: Refresh with JavaScript?

by "Jason Boudreault" <theunforgiven(at)home.com>

 Date:  Thu, 5 Oct 2000 08:54:39 -0600
 To:  "Steve Mount" <steve(at)saltyrain.com>,
<hwg-techniques(at)hwg.org>
 References:  idx
  todo: View Thread, Original
If you want a timed refresh you could use a meta tag..

But for straight JS..:

<scr!pt language="javascript">
if (this happens) {
 window.location="myjavascriptpage.html";
}
</scr!pt>

if you want a timed JS one..

<scr!pt language="javascript">
setTimeout("window.location='myjspage.html';",2000); // 2 second refresh
</scr!pt>

- JB

----- Original Message -----
From: "Steve Mount" <steve(at)saltyrain.com>
To: <hwg-techniques(at)hwg.org>
Sent: Thursday, October 05, 2000 7:55 AM
Subject: Refresh with JavaScript?


> Anyone know of a JavaScript method to force a page to refresh?  I want to
> have a function in an index page to force a refresh on two framed pages
when
> certain actions are taken, but I just cannot seem to find what I need ...
> basically, a js way of doing what "Right-click|Refresh" does.
>
> -------------------------------------------------------------
> Steve Mount, Software Engineer            steve(at)saltyrain.com
> Home Site                            http://www.saltyrain.com
> US Constitution Online          http://www.usconstitution.net
> Clear your Soul            http://www.anonymousconfession.com
> Manager, HWG Logo Team                     http://www.hwg.org
>
>

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