This script will automatically redirect the visitor to another page after a given number of seconds if the requested page is no longer available or has been moved to a new location. If you would like to see this effect in action, grab the below link.
[ Working Example ]
We have tested the code in IE6.0, Firefox1.5.0.4, Opera9.0, Netscape8.1 and AOL Explorer1.2. This script worked well in all platforms with no variations observed.
D epending on your knowledge of HTML and javascripts, this is an easy two (2) part copy and paste code that goes in both the <HEAD> and <BODY> sections of your document with minimal reconfigurations in both parts.
Reconfigurations In <HEAD> Section
<script type="text/javascript">
<!--
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Sandeep Gangadharan :: http://sivamdesign.com/scripts/ */
function moveTo() {
location.href = "URL TO REDIRECTED PAGE";
}
window.onload=setTimeout('moveTo()', 5000);
//-->
</script>
Define Above Areas Of Reconfiguration
Note Of Professionalism: Most people are curious by nature. So on a page such as this that will be redirected*, tell them where and why they are being redirected. Be polite and professional. It says alot about your work and the level of professionalism your site projects.
Reconfigurations In <BODY> Section
This page has moved. You shall now be automatically redirected to our new page. If you are not automatically moved <a href="URL TO REDIRECTED PAGE">Click Here!</a>
Note Of Importance: As silly as it may sound (and the question has been posed to us) this script goes on the old page that is no longer being used. "Not" on the "New Page" you want your visitors to be redirected.
W
e hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our [ FAQ ] and if you can't find the answer there, [ contact us ].
[ Get Code Here ]
[ Rate This Page ]