UBB.Dev
Posted By: Bookie Refreshing by Link - 11/21/2002 6:52 AM
Hello. smile

I need to find a way to make a page refresh when you click a link. Can anyone help me? laugh

Thanks. thumbsup
Posted By: Charles Capps Re: Refreshing by Link - 11/21/2002 6:54 AM
Code
<a href="javascript:window.reload()">Refresh</a>
That should work. Most browsers will just pull the page out of the cache again, however, so a larger function that adds a random query string (to throw off the caching) might be needed.
Posted By: 1QuickSI Re: Refreshing by Link - 11/23/2002 2:37 AM
Non-JavaScript way...

Refresh or redirect someone depends on what URL you use. Just set the numeric value to something higher otherwise it will auto refresh wink

Code
<html>
<head>
<title>Hostboard Re-director</title>
<meta http-equiv="refresh" content="3;url=http://www.hostboard.com/cgi-bin/ultimatebb.cgi">
</head>
<body>
The page you requested does not exist.
Hold on while we transport you back to an
active Hostboard page or you can click
<a href="http://www.hostboard.com/cgi-bin/ultimatebb.cgi"><b>HERE</a></b>
if you are not automaticly re-directed.
</body>
</html>
Posted By: Matt Jacob Re: Refreshing by Link - 11/23/2002 7:11 PM
Quote
quote:
Originally posted by 1QuickSI:
Non-JavaScript way...
Not quite. It would actually be something like what Charles was talking about, i.e. http://www.domain.com/page_to_refresh.html?acufd37fdjef84fjef
© UBB.Developers