Javascipt Redirect To Another Site With Timer

RegisterLogin
Javascipt Redirect To Another Site With Timer
Post Description: Javascipt Redirect To Another Site With Timer
Tags: Javascipt, Redirect, To, Another, Site, With, Timer
This Post Was Posted On Apr 22, 2008 By Webune #528
ok, sometimes you have to change your website and when you install a new script or a new application on your website, the url doesn't always stay the same, but you dont want to loose all those customer by showing them an 404 error on their browser, istead, you want to redirec them to your new site, well, you can do this with javascript. this example will show your visitors a message and in 5000 milliseconds it will time out and send them to another site.


<html>
<head>
<title>Webune Redirect</title>
<script type="text/javascript">
<!--
function delayer(){
window.location = "http://www.webune.com"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2 >Your will be redirected.... </h2>
<p>We are sorry, this page has moved to another location. please wait while you are redirected to the new website</p>
<p><a href="http://www.webune.com">Webune.com </a></p>
</body>
</html>


so just copy and paste the code above to your notepad and save it as webune-timer.html then open it with your browser and you will see it in action.. its cool.

try it
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
learner
#698 1
i like it
Jun 04, 2008 Reply Report abuse
©2011 Webune Forums - Fri Dec 23, 2011 7:52 pm
Powered by: Webune Forums V3