Here is the JavaScript for a simple timed redirect page that you can use:
<!-- TWO STEPS TO INSTALL TIMED REDIRECT:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: desypfa@hotmail.com -->
<!-- Modified: Benjamin Wright, Editor -->
<!-- Begin
redirTime = "1";
redirURL = "http://javascript.internet.com/new";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
// End -->
</script>
<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<BODY onLoad="redirTimer()">
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 0.88 KB -->
Hope this helps you...
|