Today is . Page created 07/04/06

Moving Redirect If Page Moved Moving Van

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

  • location.href = "URL TO REDIRECTED PAGE" ~ This is the page you want your visitiors to be sent.
  • window.onload=setTimeout('moveTo()', 5000); ~ This is where you set how long before the page tranisiton to the redirected page.
    5000 = 5 seconds, 6000 = 6 seconds etc.

Note Of Professionalism 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.

  • * Always set the time to allow the person on the page to be redirected enough time to read the message you have posted.
  • You may be a fast reader, but not everyone reads at the same pace.
  • Set the transition time accordingly to allow a slower reader the courtesy of finishing what you want them to read.
  • Nothing is more annoying than to start reading something and have the page redirected before you finish.
  • If they finish reading before the redirection occurs, they can just click on the link to be sent to the new page.
  • Rule of Thumb ~ Give more time than needed to assure your message is read completely by your visitors no matter what speed they read.

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>

Warning Logo     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 ]