|
-
Aug 8th, 2002, 02:01 PM
#1
Thread Starter
Hyperactive Member
Reload with javascript
Anyone have a quick javascript to reload a page every five minutes?
-
Aug 8th, 2002, 02:28 PM
#2
Hyperactive Member
<html>
<head><script>
function doit() {
window.location.href = "index.html";
}
function reloadme() {
setInterval("doit()",300000);
}
</script>
</head>
<body onLoad=" return reloadme()">
hello
</body>
</html>
not sure if syntax is correct
bsw2112
-
Aug 8th, 2002, 07:17 PM
#3
PowerPoster
another idea...
Code:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
<!--
var URL = "page.html"; // page to redirect to, enter same filename to reload
var interval = 300000; // in milliseconds. 1 second = 1000
function reload() {
location = URL;
}
setTimeout("reload()", interval);
//-->
</script>
</HEAD>
<BODY>
Stuff
</BODY>
</HTML>
-
Aug 10th, 2002, 02:50 PM
#4
New Member
try this i hope u like it:
____________________________________________________
<html>
<head>
<meta http-equiv="Refresh"
content="300;url=YOUR_WEBSITE_NAME">
</head>
<body>
BLA BLA BLA BLA BLA BLA
</body>
</html>
____________________________________________________
NOTE:the number (300) is the number of seconds (300 seconds=5minutes)
BEST REGARDs,
Any Problem made by man is solved by man.
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
|
Click Here to Expand Forum to Full Width
|