Javascipt Redirect To Another Site With Timer
javascipt redirect to another site with timer
javascipt, redirect, to, another, site, with, timer
Javascipt Redirect To Another Site With Timer
Post Description: javascipt redirect to another site with timer
POST# 1229
Posted On: Tue Apr 22, 2008 1:09 pm
Webune
Topic: Javascipt Redirect To Another Site With Timer
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
Share:
BBCODE:
HTML Code:


Wed Jun 04, 2008 12:31 pm
1
learner
Reply #2051
i like it

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload
     
  1. How To Redirect Refer To Another Url With Javascript
  2. Javascipt Redirect To Another Site With Timer