Script Categories













Menus and Navigation >>> Redirection.

Count down then redirect script.

Add the below code to the <body> section of your page:

<form name="redirect">
<font face="Arial"><b>You will be redirected to a directory on your hard drive in<br><br>
<form>
<input
type="text" size="3" name="redirect2">
</form>
seconds</b></font>

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
//change below target URL to your own
var targetURL="../"
//change the second to start counting down from
var countdownfrom=5


var currentsecond=document.redirect.redirect2.value=countdownfrom+1
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.redirect.redirect2.value=currentsecond
}
else{
window.location=targetURL
return
}
setTimeout("countredirect()",1000)
}

countredirect()
//-->
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©