-
HELP! custom script needed?
Hey! can anyone help me? I need a script that auto refreshes a page once it is updated. something like an ongoing thing. Hope u guys know what' i'm trying to refer to.
Here's a sample
-
-
<html>
<head>
<meta http-equiv="refresh" content="5;url=http://my.com/page.htm">
....
</head>
<body>...</body>
</html>
The number is the number of seconds before the refesh, and the url is the url to be forwarded to. Using just content="5" would refresh to the current page (URL ommitted), creating a loop.
Note that the loop will only exist if you do link the same page (or, I suppose, a similar page) with the refresh code on it.
Use content="0;..." to have it refresh automatically (this is for using as a redirect to another page; you wouldn't want this to the same page, or it would just load endlessly, never stopping to display the page).
Also, be careful with this. With a slow connection this would be a pain, and it could just be very annoying on your site, depending on the use.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks