JavaScript Source Code 3000: Navigation: Timed Redirect
Timed Redirect
Here's a simple way to redirect a user to another page using JavaScript. Short!
(You will be redirected to Yahoo in 25 seconds!)
JavaScript Source Code 3000: Navigation: Timed Redirect
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
<!-- 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 = "15000";
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()">
<!-- Script Size: 0.88 KB -->
Wyszukiwarka
Podobne podstrony:
timedtimedtimedtimedage redirecttimedAutomatic, periodic and timed eventslist5 redirectbrowser version redirectTimed Arrow Huicss support redirectday of week redirectionsimple redirectwięcej podobnych podstron