Automaticly Go To Address

Written by @kerixa 21 August 2012

You can use automatic redirection codes when you want your website users to automatically log in to another website, such as logging in to a payment gateway. In this code, the users will enter a desired site after 5 seconds. The amount of seconds that must be counted to be redirected to the desired website and the URL of that website can be adjusted by you.

Code Snippet:

                                                
                                                <!-- this script is provided by www.javascriptfreecode.com coded by: Kerixa Inc. -->
<p><!--webbot bot="HTMLMarkup" startspan --><form name="redirect">
<center>
<font face="Arial"><b> After 5 Second . . .<br><br>
<form>
<input type="text" size="3" name="redirect2">
</form>
</b></font>
</center>

<script>
<!--

var targetURL="http://www.javascriptfreecode.com"

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>
<!--webbot bot="HTMLMarkup" endspan --></p>
</body>
</html>
<!-- this script got from www.javascriptfreecode.com coded by: Krishna Eydatoula-->
<html>
<head>

<style>
.myStyle { writing-mode: tb-rl;
filter: flipH() flipV();
}
</style>


<base target="_blank">


</head>
<body>

<p align="center">

<span class="myStyle">
<font size="6" color="#000000">javascriptfreecode.com</font>
</span>

</p>

</body>
</html>
<a target='_blank' href='www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>                                                
                                            

Example:


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!

K

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: Bongani Radebe, sumanmukh1999@gmail.com, Jack the gripper♡, mbedel25, irwansrahman
advertisement 2