»
EnglishFrenchVietnamese

Print - Redirecting JavaScript script - JavaScriptBank.com

Full version: jsB@nk » Snippet » Redirecting JavaScript script
URL: https://www.javascriptbank.com/redirecting-javascript-script.html

Redirecting JavaScript script © JavaScriptBank.comThis JavaScript uses a short JavaScript code to redirect to another URL. Though the code is simple but we need decorate the page with image/message to notice to visitors.

Full version: jsB@nk » Snippet » Redirecting JavaScript script
URL: https://www.javascriptbank.com/redirecting-javascript-script.html



JavaScript
<script language="JavaScript">// Redirecting JavaScript script by Thái Cao Phong// Copyright by JavaScriptBank.com// 14/08/2005var my_timeout=setTimeout("gotosite();",3000);function gotosite(){window.location="http://javascriptbank.com/";}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">  <tr>    <td width="20%">&nbsp;</td>    <td width="40%" height="120" style="border: 1px solid #FF0000; " bgcolor="#E0F1EE"><p align="center"><b><font size="4" color="#004770" face="Verdana">Thank you for writting to us</font></b><font face="Verdana" size="1" color="#004770"><br><br>We'll reply to you early.</font></p>    </td>    <td width="20%">&nbsp;</td>  </tr>  </table><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->