Count down before redirect

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bigjoe11a
Forum Newbie
Posts: 9
Joined: Mon Jan 17, 2011 2:57 pm
Location: Ohio, USA
Contact:

Count down before redirect

Post by bigjoe11a »

I have a small javascript that will redirect after some many sec's. It's just I wanted some thing that will show sec's before it redirects. Like a count down timer.

Code: Select all

<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
    window.location = "http://www.proforums.freehostingcloud.com"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2 >Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new 
location!</p>

</body>
</html>

Post Reply