Here are some method's of reloading a web page or causing a different page to load. Remember when you reload the same page it will keep reloading over and over. The most pratical use would be to cause an automatic redirect to another page, or use the CONTENT="Expires" tag. To Reload The Current Document Place a Meta tag like the on in the example in between your <HEAD></HEAD> tags. This should work with Netscape and MSIE 3.0 or later. This will cause the page to reload over and over.CONTENT=3 means wait 3 seconds to reload page. <META HTTP-EQUIV=REFRESH CONTENT=3> </HEAD> How To Load Another Page Automatically <HEAD> <META HTTP-EQUIV=REFRESH CONTENT="3;URL=http://www.alltel.net/~woody1/index.htm/"> </HEAD> Alternate Method To Reload current Page You can use the following tag to cause a reload also, just set a past date. <META HTTP-EQUIV="Expires" CONTENT="Monday,17 November 1997 9:00:00 GMT" </HEAD> JavaScript To Reload Page You can use this JavaScript to reload the same page over and over or load a different page. <TITLE>Auto Reload</TITLE> <script language="JavaScript"> <!-- var time = null function move() { window.location = 'http://yoursite.com/yourpage.html' } //--> </script> </HEAD> <BODY onload="timer=setTimeout('move()',3000)"> </BODY> This JavaScript will reload a page in 3 seconds. timer=setTimeout('move()',3000), 3000 is number of milliseconds which equals to 3 seconds. To load another page, change window.location = 'http://yoursite.com/yourpage.html', to your destination.
Copyright © 1997~98 All rights reserved.
The Albritton Family Home Page ~ Live Oak, Florida This Web Site hosted, designed and mintained by: Charles & Susan Albritton E-mail: Charles Albritton E-mail: Susan Albritton Last Modified on May 03 1998
|